Answers for "how to force overwrite git pull"

60

git force pull

git fetch --all
git reset --hard origin/master
Posted by: Guest on February-29-2020
2

force git pull overwrite

# if working with newer repos where 'master' is now 'main'
git fetch --all
git reset --hard origin/main
Posted by: Guest on December-11-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language