奇怪的报错:

报错后发现clone下来的工程目录下为空???什么鬼,git status查看全被删除了

重复几次还是这样,到这一步我的脑瓜子嗡嗡的,穷尽了我自己的知识图谱呀,只能向Google大佬问下

果然,是有大佬遇到过的

根据其总结:

  1. Clone the Git repository locally;  (先git clone下来)
  2. 'cd' into the local Git repository folder that has just been cloned; (cd 到clone的工程目录下)
  3. Run git reset  (git reset 试试能不能回退)
  4. Run git config core.protectNTFS false  (执行git config配置)
  5. Run git checkout (just git checkout, no * at the end of command).  (可以看看目录是否正常,此时应该可以执行git checkout 命令)
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐