A方法: 简单粗暴删掉本地的项目文件夹重新拉取,或者直接使用别的文件夹名称重新拉取 B方法: git fetch --all git reset --hard origin/master 如果是别的分支直接修改master为分支名即可