Reputation: 1295
I have a question concerning the git reset
command:
git reset .
git reset HEAD .
What is the difference between the two commands? Are making same changes?
Upvotes: 3
Views: 2482
Reputation: 111
Git Reset: to undo commits:
Example: git reset "hashValueOfAnyCommit"
Upvotes: 1
Reputation: 18825
Yes, it does exactly the same. If you omit the commit id, it will default to HEAD.
Upvotes: 2