Pull overwrite local
suggest changegit fetch
git reset --hard origin/master
Beware: Commits discarded by reset --hard can be recovered from the reflog. Uncommitted changes are deleted.
This resets whichever branch is checked out. Check out the branch you mean to overwrite before you run it. Change origin and master if that remote or branch has another name.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents