Force git to take remote's version of a file? -


i've gotten state git, , can't sync master.

the idea below abandon changes have locally conflicts , use what's in master. unfortunately, git won't allow me that. i've tried deleting files , following git's instructions git rm xxx on offending files. fails after git reset --hard head.

enter image description here

how force git take remote's copy of files?

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

original link: how force "git pull" overwrite local files?


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -