Git – Force an overwrite of files on a git pull

Use this commands to force an overwrite of files on a git pull:


git fetch --all
git reset --hard origin/master

Leave a Reply

Your email address will not be published. Required fields are marked *