Thursday, March 3, 2016

Reset local git branch to match remote

Setting your branch to exactly match the remote branch can be done in two steps:

git fetch origin
git reset --hard origin/master


No comments:

Post a Comment