]> git.phdru.name Git - git-wiki.git/blobdiff - pep-git.txt
Anonymous access == git daemon
[git-wiki.git] / pep-git.txt
index 28f8cc1ef5d60df4f4a57a7a1e0dc6e50fdae0f9..6563191dade96ec1b993efc880445cfa6b1f589d 100644 (file)
@@ -650,7 +650,8 @@ committing means you need to do that for every change, not only to add
 new (untracked) files. To simplify committing in case you just want to
 commit everything without reviewing run ``git commit --all`` (or just
 ``-a``) - the command adds every changed tracked file to the index and
-then commit.
+then commit. To commit a file or files regardless of patches collected
+in the index run ``git commit [--only] -- $FILE...``.
 
 To add hunks of patches to the index use ``git add --patch`` (or just
 ``-p``). To remove collected files from the index use ``git reset HEAD
@@ -660,7 +661,8 @@ To add hunks of patches to the index use ``git add --patch`` (or just
 To see the diff between the index and the last commit (i.e., collected
 patches) use ``git diff --cached``. To see the diff between the
 working tree and the index (i.e., uncollected patches) use just ``git
-diff``.
+diff``. To see the diff between the working tree and the last commit
+(i.e., both collected and uncollected patches) use ``git diff HEAD``.
 
 See `WhatIsTheIndex
 <https://git.wiki.kernel.org/index.php/WhatIsTheIndex>`_ and
@@ -699,7 +701,8 @@ https://git.kernel.org/cgit/git/git.git/tree/contrib/completion
 git on server
 =============
 
-TODO: anonymous access; git over ssh; gitolite; gitweb; cgit; gitlab.
+TODO: anonymous access (``git daemon``); git over ssh; gitolite;
+gitweb; cgit; gitlab.
 
 http://gitolite.com/gitolite/index.html