
Untitled
By: a guest on
May 1st, 2012 | syntax:
None | size: 0.47 KB | hits: 14 | expires: Never
Git - retroactively patching a file that will be copied
% git branch before-cp
% cp original.script modified.script
% git add modified.script
% git commit -m "creating a copy to modify"
% vim modified.script #...
% git add modified.script
% git commit -m "made some modifications"
% git checkout before-cp
% vim original.script #...
% git add original.script
% git commit -m "fixing a bug in original before I start copying it"
% git checkout master
% git rebase before-cp