您的位置:首页 > 编程语言

Github:failed to add file / to index

2016-04-12 14:02 155 查看
本地使用github时,commit添加到路径中的项目时会提示Github:failed to add file / to index

是因为创建的项目目录里面有个目录曾经创建国项目,里面会有一个隐藏的文件”.git”,删除即可

1)显示Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool true

(2)隐藏Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool false
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: