how to pull from github and overwrite local changes code example Example: git force pull git fetch --all git reset --hard origin/master