gitignore not working on all files

只谈情不闲聊 提交于 2019-11-29 18:15:22

That's most probably because you committed it before adding *.tlog in your .gitignore.

Use git rm to remove it from git and the commit the changes:

 git rm D:\Projects\driver1\ioctlapp\inter\Debug\link.write.1.tlog
 git commit -m 'Removed link.write.1.tlog'

Next time when you will edit it, it will be ignored.

First check if file is tracked git ls-files --error-unmatch file_name If you don't see error, then it's tracked. Remove it from index but not from disk with git rm --cached. After that commit that change. Let me know if it helped you.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!