From: Oleg Broytman Date: Wed, 19 Aug 2015 23:14:01 +0000 (+0300) Subject: git commit --only == git commit -o X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=5200492373a6f0b13a1f7c585ceaba02d067bf78;p=git-wiki.git git commit --only == git commit -o --- diff --git a/pep-git.txt b/pep-git.txt index 6563191..f3b5e55 100644 --- a/pep-git.txt +++ b/pep-git.txt @@ -651,7 +651,7 @@ 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. To commit a file or files regardless of patches collected -in the index run ``git commit [--only] -- $FILE...``. +in the index run ``git commit [--only|-o] -- $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