Git 多条命令并为一条命令执行
git fetch --all && git reset --hard origin/master && git pull
可以实现强制更新线上代码并覆盖本地代码的功能(备注:origin 是仓库地址的别名可以通过git remote -v 查看别名是啥,master是回退的分支名)
本文来自博客园,作者:jason_bo,转载请注明原文链接:https://www.cnblogs.com/jasonboboblog/p/15876325.html
git fetch --all && git reset --hard origin/master && git pull
可以实现强制更新线上代码并覆盖本地代码的功能(备注:origin 是仓库地址的别名可以通过git remote -v 查看别名是啥,master是回退的分支名)
本文来自博客园,作者:jason_bo,转载请注明原文链接:https://www.cnblogs.com/jasonboboblog/p/15876325.html