博客园站长
这是人类成长进步中记录的每一时刻

转自: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"
posted on 2014-04-24 10:26  dm3344  阅读(225)  评论(0)    收藏  举报