Reset local repository branch to be just like remote repository HEAD
Setting your branch to exactly match the remote branch can be done in two steps: git fetch origin git reset –hard origin/master If you want to save your current branch’s state before doing this (just in case), you can do: git commit -a -m “Saving my work, just in case” git branch my-saved-work Now your … Read more