File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 691
691
692
692
< h4 >
693
693
git reset --soft
694
- < small > moves what HEAD points to , index and staging are untouched</ small >
694
+ < small > moves HEAD to specified commit reference , index and staging are untouched</ small >
695
695
</ h4 >
696
696
697
697
< p > The first thing < code > git reset</ code > does is undo the last
753
753
754
754
< p > In the above example, while we had both changes ready to commit and
755
755
ready to stage, a < code > git reset --hard</ code > wiped them out.
756
- The working tree and stage are now reset to the point just after the
757
- commit pointed at by HEAD.</ p >
756
+ The working tree and staging area are reset to the tip of the current
757
+ branch or HEAD.</ p >
758
758
759
759
< p > You can replace < code > HEAD</ code > with a commit SHA-1 or another
760
760
parent reference to reset to that specific point.</ p >
You can’t perform that action at this time.
0 commit comments