git放弃修改,强制覆盖本地代码

mac2022-06-30  25

1.git fetch --all  //从远程拉取最新的代码 不merge

2.git reset --hard origin/develop  //使用指定分支的代码(此处develop)强制覆盖代码

3.git pull  //从远程拉取最新的代码 自动merge

转载于:https://www.cnblogs.com/mengzhilva/p/11523596.html

最新回复(0)