Mar
03
2024
Git强拉远程代码覆盖本地代码
作者:
绝缘体.. 发布:
2024-03-03 15:47 分类:
未分类 阅读:
抢沙发
Git强拉远程代码覆盖本地代码。
1、下载远程仓库中所有的代码
git fetch --all
2、指定下载的分支的最新的版本
git reset --hard origin/master
3、同步远程仓库的代码
git pull
合并为一步:
git fetch --all && git reset --hard origin/master && git pull
微信扫一扫,打赏作者吧~