X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=pep-git.txt;h=6563191dade96ec1b993efc880445cfa6b1f589d;hb=b0b8875db65efcdc065f1fec308a2c4fe147cec4;hp=552901ea2f49487d84ea16af94a3864c9afa9e8d;hpb=c3b62e0d9d7d8fb16a24dbc6dddc1ad59999b5d9;p=git-wiki.git diff --git a/pep-git.txt b/pep-git.txt index 552901e..6563191 100644 --- a/pep-git.txt +++ b/pep-git.txt @@ -72,7 +72,8 @@ Quick start Download and installation ------------------------- -Unix users: download and install using your package manager. +Unix users: `download and install using your package manager +`_. Microsoft Windows: download `git-for-windows `_ or `msysGit @@ -649,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 @@ -659,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 `_ and @@ -698,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