拉覆盖本地

git fetch
git reset --hard origin/master

注意: 使用 reset --hard 丢弃的提交可以使用 reflog 和 reset 恢复,但未提交的更改将永久删除。

如果命名方式不同,则将 origin 和 master 分别更改为要强制拉到的远程和分支。