On Thu, Jun 2, 2011 at 10:19 PM, Øyvind Harboe wrote:
> On Thu, Jun 2, 2011 at 10:11 PM, Freddie Chopin
>> Any hints on the method to split such commited change into several
>> commits? GIT is still not my strongest side (;
>
> wip = work-in-progress, new branch below
>
> git checkout -b wip
> git reset HEAD^
> git add foo.c
> git commit
> git add bar.c
> git commit

Also, if you have made independent changes within one file and only
want to add some hunks of it to one commit, you can use:
  git add -p foo.c
to interactively pick hunks to go into the commit.

Tormod
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to