dailyhack icon indicating copy to clipboard operation
dailyhack copied to clipboard

Reset local repository branch to be just like remote repository HEAD

Open absyah opened this issue 5 years ago • 0 comments

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

git fetch origin
git reset --hard origin/<branch>

absyah avatar Jun 11 '19 01:06 absyah