解决使用git时提示“failed to sync branch”

版权声明:转载请注明原链接 https://blog.csdn.net/cowcomic/article/details/82981743

当创建了一个空的git项目,本地复制进来一大堆文件,想做任何git操作的时候,就会报
 

failed to sync this branch
You might need to open a shell and debug the state of this repo.

也许你会根据提示去执行

debug xxx

然而会发现没什么用

实际原因就是没有初始化

在当前目录执行一下

git init

就OK了

猜你喜欢

转载自blog.csdn.net/cowcomic/article/details/82981743
今日推荐