What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-02-18 14:45:19
how to go to a previous commit state
git revert <commit hash> Add solution -
-
Shell/Bash 2022-01-22 10:40:06
how to revert a git revert
git revert <the_commit_hash> Add solution -
Shell/Bash 2021-10-17 23:33:03
revert or reset git
git reset Commit-level Discard commits in a private branch or throw away uncommited changes git reset File-level Unstage a file git checkout Commit-level Switch between branches or inspect old snapshots git checkout File-level Discard changes in the worki... Add solution -
-
Shell/Bash 2021-10-06 11:32:02
git checkout previous commit
git revert <commit hash> Add solution