We still talked about HEAD symlinks but these days we use
symrefs by default.
Also 'failed/prevented' message is now gone from the merge
output.
Signed-off-by: Junio C Hamano <junkio@cox.net>
@ -66,9 +66,9 @@ your new project. You will now have a `.git` directory, and you can
@@ -66,9 +66,9 @@ your new project. You will now have a `.git` directory, and you can
inspect that with `ls`. For your new empty project, it should show you
three entries, among other things:
- a symlink called `HEAD`, pointing to `refs/heads/master` (if your
platform does not have native symlinks, it is a file containing the
line "ref: refs/heads/master")
- a file called `HEAD`, that has `ref: refs/heads/master` in it.
This is similar to a symbolic link and points at
`refs/heads/master` relative to the `HEAD` file.
+
Don't worry about the fact that the file that the `HEAD` link points to
doesn't even exist yet -- you haven't created the commit that will
@ -89,7 +89,7 @@ of different 'heads' of development (aka 'branches'), and to any
@@ -89,7 +89,7 @@ of different 'heads' of development (aka 'branches'), and to any
repository.
One note: the special `master` head is the default branch, which is
why the `.git/HEAD` file was created as a symlink to it even if it
why the `.git/HEAD` file was created points to it even if it
doesn't yet exist. Basically, the `HEAD` link is supposed to always
point to the branch you are working on right now, and you always
start out expecting to work on the `master` branch.
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
filename directly to `git commit`. The `-m` flag is to give the
filename directly to `git commit`, with an `-i` flag (it tells
git to 'include' that file in addition to what you have done to
the index file so far when making the commit). The `-m` flag is to give the
commit log message from the command line.
Now, to make it a bit more interesting, let's assume that somebody else
@ -924,7 +920,7 @@ file, which had no differences in the `mybranch` branch), and say:
@@ -924,7 +920,7 @@ file, which had no differences in the `mybranch` branch), and say:
...
Auto-merging hello
CONFLICT (content): Merge conflict in hello
Automatic merge failed/prevented; fix up by hand
Automatic merge failed; fix up by hand
----------------
which is way too verbose, but it basically tells you that it failed the
@ -964,7 +960,7 @@ Another useful tool, especially if you do not always work in X-Window
@@ -964,7 +960,7 @@ Another useful tool, especially if you do not always work in X-Window
environment, is `git show-branch`.
------------------------------------------------
$ git show-branch master mybranch
$ git show-branch --topo-order master mybranch
* [master] Merge work in mybranch
! [mybranch] Some work.
--
@ -1006,6 +1002,7 @@ would be different)
@@ -1006,6 +1002,7 @@ would be different)