undo git reset HEAD~1
# if you would like to move back the head by one position you could do:
git reset HEAD~
# if you want to move multiple positions at once e.g 3 times back type:
git reset HEAD@{3}
undo git reset HEAD~1
# if you would like to move back the head by one position you could do:
git reset HEAD~
# if you want to move multiple positions at once e.g 3 times back type:
git reset HEAD@{3}
git revert to old commit
git reset --hard c14809fa
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 working directory
git revert Commit-level Undo commits in a public branch
git revert File-level (N/A)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us