Menu

Showing posts with label git reset --hard HEAD. Show all posts
Showing posts with label git reset --hard HEAD. Show all posts

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.