On 16.12.2010 16:58, Peter Stuge wrote: > Michael Trensch wrote: >> Probably it was an error to keep two branches and merge them by hand. >> >> I've made the changes in a temporary test environment and tried to merge >> the stuff. >> 1. cloned openocd's GIT repo >> 2. git mv tcl/target/netx500.cfg tcl/target/hilscher_netx500.cfg >> 3. Copied hilscher_netx500.cfg from temp >> 4. git add tcl/target/hilscher_netx500.cfg >> 5. git commit >> >> Probably i shouldn't have added the file again after modification, >> or don't copy it? > The above looks exactly right. > > But you could do one thing to get some more information: > > After 3. instead of git add you could do git commit. > Then copy the file in, and do a git diff, to see the changes that git > detects. When pleased, git add and git commit again. > > Now you have two commits and would like to combine them. Do > interactive rebase. > > git rebase -i HEAD^^ > > Editor opens with two lines of pick <commit>. Change the second pick > to the word squash, then save and exit. git will then combine the > second commit with the first in your repo. Then run git commit > --amend if you want to fix up the commit message before sending out a > patch. (Can also use git send-email to send the patch directly.) >
Thanks for explaining me git in detail, I appreciate that. But for now I think I must wait for all this information to settle. Too much input at once ;) Hopefully it was not the last patch I submit so I can train on that stuff for the next patches. Michael _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development