参考:

Github:failed to add file / to index

解决 Github:failed to add file / to index 问题

在通过Github for Mac客户端提交commit的时候,出现一下问题:

Github:failed to add file / to index

原因是添加的这个子目录原来是我clone下来的一个repo,里面有.git等遗留文件。

解决方法:打开终端,cd到对应目录下面,然后删除掉.*文件即可。

2017.6.8

相关文章:

  • 2021-08-06
  • 2022-12-23
  • 2021-12-19
  • 2022-02-25
  • 2022-02-01
  • 2021-07-08
  • 2022-12-23
  • 2021-08-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
  • 2022-12-23
  • 2022-01-08
  • 2021-12-08
相关资源
相似解决方案