git强行覆盖本地:
git fetch --all //从远程拉取最新的代码 不merge
git reset --hard origin/master //使用指定分支的代码(此处develop)强制覆盖代码
git pull //从远程拉取最新的代码 自动merge
git强制覆盖本地命令(单条执行):
git fetch --all && git reset --hard origin/master && git pull
git强行覆盖本地:
git fetch --all //从远程拉取最新的代码 不merge
git reset --hard origin/master //使用指定分支的代码(此处develop)强制覆盖代码
git pull //从远程拉取最新的代码 自动merge
git强制覆盖本地命令(单条执行):
git fetch --all && git reset --hard origin/master && git pull