$ git checkout mybranch $ echo "Work, work, work" >>hello -$ git commit -m 'Some work.' -i hello+$ git commit -m "Some work." -i hello
From: Junio C Hamano
$ git checkout mybranch $ echo "Work, work, work" >>hello -$ git commit -m 'Some work.' -i hello+$ git commit -m "Some work." -i hello
Here, we just added another line to hello, and we used a shorthand for doing both git-update-index hello and git commit by just giving the @@ -1077,7 +1077,7 @@ hasn't happened in the master branch at all. Then do
$ echo "Play, play, play" >>hello $ echo "Lots of fun" >>example -$ git commit -m 'Some fun.' -i hello example+$ git commit -m "Some fun." -i hello example
since the master branch is obviously in a much better mood.
Now, you've got two branches, and you decide that you want to merge the @@ -1885,8 +1885,8 @@ in both of them. You could merge in diff-fix first and then commit-fix next, like this:
$ git merge -m 'Merge fix in diff-fix' diff-fix -$ git merge -m 'Merge fix in commit-fix' commit-fix+
$ git merge -m "Merge fix in diff-fix" diff-fix +$ git merge -m "Merge fix in commit-fix" commit-fix
Which would result in: