11 August 2012

git fetch vs. git pull

When wanting to overwrite local files, I found using git fetch is the answer.

It has to be followed by:
git reset --hard origin/master


No comments:

Post a Comment