summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4a7979c)
raw | patch | inline | side by side (parent: 4a7979c)
author | J. Bruce Fields <bfields@citi.umich.edu> | |
Mon, 29 Jan 2007 07:16:45 +0000 (02:16 -0500) | ||
committer | J. Bruce Fields <bfields@citi.umich.edu> | |
Mon, 29 Jan 2007 07:16:45 +0000 (02:16 -0500) |
Prefer "object name" to SHA1, at least in higher level documentation.
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
Documentation/user-manual.txt | patch | blob | history |
index 5f41a2d026e9dfa267aa278cf0d083dbe4132e72..61c8b4389b859b0560b6c788cf8f8ece3808fb5c 100644 (file)
We have seen several ways of naming commits already:
- - 40-hexdigit SHA1 id
+ - 40-hexdigit object name
- branch name: refers to the commit at the head of the given
branch
- tag name: refers to the commit pointed to by the given tag
name revisions. Some examples:
-------------------------------------------------
-$ git show fb47ddb2 # the first few characters of the SHA1 id
+$ git show fb47ddb2 # the first few characters of the object name
# are usually enough to specify it uniquely
$ git show HEAD^ # the parent of the HEAD commit
$ git show HEAD^^ # the grandparent
branch.
The gitlink:git-rev-parse[1] command is a low-level command that is
-occasionally useful for translating some name for a commit to the SHA1 id for
-that commit:
+occasionally useful for translating some name for a commit to the object
+name for that commit:
-------------------------------------------------
$ git rev-parse origin
will tell you whether the contents of the project are the same at the
two branches; in theory, however, it's possible that the same project
contents could have been arrived at by two different historical
-routes. You could compare the SHA1 id's:
+routes. You could compare the object names:
-------------------------------------------------
$ git rev-list origin