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

2023-06-12,,

参考:

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

解决 Github:failed to add file / to index 问题的相关教程结束。

《解决 Github:failed to add file / to index 问题.doc》

下载本文的Word格式文档,以方便收藏与打印。