Thursday, August 25, 2016

Git Hard Reset to a branch

In the case where work on a branch is not needed and you just want to reset the branch or hard reset to another branch, use the following command:

git reset --hard origin/your_branch

Note: this will over write any existing changes in the branch you're working on.