1.git pull强制覆盖本地2.git pull不覆盖本地 1.git pull强制覆盖本地# 拉取代码git fetch --all# 然后,你有两个选择:git reset --hard origin/master 2.git pull不覆盖本地# 缓存本地代码git stash# 拉取代码git pull# 将缓存代码放回本地git stash pop# 代码上传git add .git commit -m '内容'git push