git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-reset.txt: Use commit~1 notation over commit^
@ 2010-12-01 18:14 jari.aalto
  2010-12-01 19:13 ` Drew Northup
  0 siblings, 1 reply; 23+ messages in thread
From: jari.aalto @ 2010-12-01 18:14 UTC (permalink / raw)
  To: git; +Cc: Jari Aalto

From: Jari Aalto <jari.aalto@cante.net>

In order to easily read paragraphs, use same notation and do not mixed
both ^ and ~N. This helps digesting the information more easier as the
tokens stay the same (dcumentation uniformity).

Signed-off-by: Jari Aalto <jari.aalto@cante.net>
---
 Documentation/git-reset.txt |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Documentation/git-reset.txt b/Documentation/git-reset.txt
index fd72976..b679c99 100644
--- a/Documentation/git-reset.txt
+++ b/Documentation/git-reset.txt
@@ -129,7 +129,7 @@ Undo a commit and redo::
 +
 ------------
 $ git commit ...
-$ git reset --soft HEAD^      <1>
+$ git reset --soft HEAD~1     <1>
 $ edit                        <2>
 $ git commit -a -c ORIG_HEAD  <3>
 ------------
@@ -166,7 +166,7 @@ $ git commit ...
 $ git reset --hard HEAD~3   <1>
 ------------
 +
-<1> The last three commits (HEAD, HEAD^, and HEAD~2) were bad
+<1> The last three commits (HEAD, HEAD~1, and HEAD~2) were bad
 and you do not want to ever see them again.  Do *not* do this if
 you have already given these commits to somebody else.  (See the
 "RECOVERING FROM UPSTREAM REBASE" section in linkgit:git-rebase[1] for
@@ -237,7 +237,7 @@ $ git checkout master
 $ fix fix fix
 $ git commit ;# commit with real log
 $ git checkout feature
-$ git reset --soft HEAD^ ;# go back to WIP state  <2>
+$ git reset --soft HEAD~1 ;# go back to WIP state <2>
 $ git reset                                       <3>
 ------------
 +
-- 
1.7.2.3

^ permalink raw reply related	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2010-12-02 19:06 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-01 18:14 [PATCH] git-reset.txt: Use commit~1 notation over commit^ jari.aalto
2010-12-01 19:13 ` Drew Northup
2010-12-01 19:37   ` Jari Aalto
2010-12-01 22:01     ` Kevin Ballard
2010-12-01 22:49       ` Jari Aalto
2010-12-01 22:56         ` Kevin Ballard
2010-12-01 22:06     ` Junio C Hamano
2010-12-01 22:50       ` Jari Aalto
2010-12-02  0:07         ` Andreas Schwab
2010-12-02  5:37           ` Jari Aalto
2010-12-01 22:56       ` Santi Béjar
2010-12-02  5:39         ` Jari Aalto
2010-12-02  6:17           ` Miles Bader
2010-12-02 12:14             ` Jari Aalto
2010-12-02 12:51               ` Drew Northup
2010-12-02 13:17               ` Miles Bader
2010-12-02 13:20                 ` jari
2010-12-02 17:44                   ` Andreas Schwab
2010-12-02 17:55                     ` Junio C Hamano
2010-12-02 18:46                       ` Jeff King
2010-12-02 18:54                         ` Junio C Hamano
2010-12-02 19:05                           ` Jeff King
2010-12-02  2:46       ` Miles Bader

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).