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

参考:

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

posted @ 2017-06-08 00:02  Wasdns  阅读(374)  评论(0编辑  收藏  举报