Reset a branch in git to its origin
Just run the snippet below in the folder of the repository GIT:
git reset --hard origin/`git rev-parse --abbrev-ref HEAD
Written by Fernando Jorge Mota
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#