Menu

How to force git pull to overwrite local file changes?

 


git reset --hard HEAD

or 

git reset --hard origin/<branch name>


After that take a pull using git pull command to pull all new commits.

No comments:

Post a Comment