feedforward 发表于 2022-11-28 09:41:16

github放弃修改,强制覆盖本地代码

在使用Git的过程中,有些时候我们只想要主线的最新版本的项目,对于本地的项目中修改不做任何理会,就需要用到Git pull的强制覆盖,具体代码如下:
$ git fetch --all
$ git reset --hard origin/master
$ git pull



页: [1]
查看完整版本: github放弃修改,强制覆盖本地代码