git pull existing repoistory and overwrite everything local code example Example: git force pull git fetch --all git reset --hard origin/master