git fetch --all 从远程拉取最新的代码 不merge
git reset --hard origin/develop 使用指定分支的代码(此处develop)强制覆盖代码
git pull 从远程拉取最新的代码 自动merge
// 代码回退到指定版本
step1: 输入 git reset --hard 'commitId' 回车
step2 : 输入 git push -f 回车
git fetch --all 从远程拉取最新的代码 不merge
git reset --hard origin/develop 使用指定分支的代码(此处develop)强制覆盖代码
git pull 从远程拉取最新的代码 自动merge
// 代码回退到指定版本
step1: 输入 git reset --hard 'commitId' 回车
step2 : 输入 git push -f 回车