X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=core-tutorial.html;h=9dfa534f45f6e19a8c4456440760de929fdeff9e;hb=2abe7e860dae61000d304bc1e865406ddc7e4ba1;hp=0a5f3aa039516f31763b1f8ebdc1eff668d8b5a8;hpb=5e461f9764f680aa78a7c16f1c9182dc36961662;p=git.git diff --git a/core-tutorial.html b/core-tutorial.html index 0a5f3aa0..9dfa534f 100644 --- a/core-tutorial.html +++ b/core-tutorial.html @@ -1083,7 +1083,7 @@ that branch, and do some work there.

$ git checkout mybranch
 $ echo "Work, work, work" >>hello
-$ git commit -m 'Some work.' 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 @@ -1105,7 +1105,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.' 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 @@ -1161,7 +1161,7 @@ Work, work, work

and once you're happy with your manual merge, just do a

-
$ git commit hello
+
$ git commit -i hello

which will very loudly warn you that you're now committing a merge (which is correct, so never mind), and you can write a small merge @@ -2011,7 +2011,7 @@ to follow, not easier.