X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=Documentation%2Ftutorial.txt;h=554ee0af912368cb842d93c025e742daaf47f5f2;hb=52ba03cbb1c718093946f5254187082bd7b32845;hp=db563127b236757de62be50a4e04439eddf2729e;hpb=abda1ef590d94a5e15e7ce3b685b5c092a790cfa;p=git.git diff --git a/Documentation/tutorial.txt b/Documentation/tutorial.txt index db563127..554ee0af 100644 --- a/Documentation/tutorial.txt +++ b/Documentation/tutorial.txt @@ -357,7 +357,7 @@ $ git diff v2.5 HEAD # compare the current HEAD to v2.5 $ git branch stable v2.5 # start a new branch named "stable" based # at v2.5 $ git reset --hard HEAD^ # reset your current branch and working - # directory its state at HEAD^ + # directory to its state at HEAD^ ------------------------------------- Be careful with that last command: in addition to losing any changes