From 5200492373a6f0b13a1f7c585ceaba02d067bf78 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 20 Aug 2015 02:14:01 +0300 Subject: [PATCH] git commit --only == git commit -o --- pep-git.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2