和同事同时拉了代码,合并了冲突,其中我放弃合并的git操作
2022-09-25 本文已影响0人
MAYDAY77
git fetch --all 从远程拉取最新的代码 不merge
git reset --hard origin/develop 使用指定分支的代码(此处develop)强制覆盖代码
git pull 从远程拉取最新的代码 自动merge
git fetch --all 从远程拉取最新的代码 不merge
git reset --hard origin/develop 使用指定分支的代码(此处develop)强制覆盖代码
git pull 从远程拉取最新的代码 自动merge