小镇青年


  • Home

  • About

  • Tags

  • Categories

  • Archives

更改gitignore无效的解决方法

Posted on 2015-05-01

有时候我们需要更改.gitignore,但是改了之后并没有效果,需要执行以下的指令使其生效

git rm -r --cached .
git add .
//重新提交即可
git commit -m "fixed untracked files" 

参考:

https://stackoverflow.com/questions/11451535/gitignore-is-ignored-by-git

123

Tonny

小镇青年不年轻

21 posts
21 tags
GitHub
© 2019 Tonny
Powered by Hexo
|
Theme — NexT.Pisces v5.1.4