'How To Revert Commits In Git?
I am a little confused about the different ways to revert commits in GIT.
From my understanding git reset --hard HEAD~1 will destroy the last commit as if it never happened.
Is git reset --hard HEAD~1 equivalent to git reset --hard HEAD@{1}?
Also, does git reset --hard 12345 destroy all commits after commit 12345?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
