有时候本地的仓库出问题,需要强制pull远程仓库的代码,命令如下:

  • 清除本地修改

    1
    git reset --hard
  • pull仓库代码

    1
    git pull