X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=Documentation%2Ftutorial.txt;h=554ee0af912368cb842d93c025e742daaf47f5f2;hb=e968751573a4ded76201a0e4414ec36649a92dda;hp=db563127b236757de62be50a4e04439eddf2729e;hpb=16a4c6ee0d9a3d07d4d0afbbc4e3467e78065eca;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