您的位置:首页 > 其它

【转】.gitignore失效的解决办法

2014-04-24 10:26 267 查看

转自:http://foreverdo.diandian.com/post/2012-09-20/40038034798

How to make .gitignore works?

Just got the answer from the IRC channel.


Running command:



git rm -r --cached .(delete all cached file)
此处注意啊  末尾有个 空格+点


This removes everything from the index, then just run:


git add .

此处注意啊  末尾有个 空格+点


Commit it:


git commit -m ".gitignore is now working"

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: