How to revert accidental git rollback
git reflog
git reset --hard HEAD@{15}
Replace 15 with your favorite number
Written by Mikael Henriksson
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#