git .gitignore忽略了文件,每次提交还是会变更这个文件
.gitignore文件内容:java/.idea/workspace.xml
doc/*.tmp
*.xml
每次commit都会有workspace.xml这个文件.
怪我咯2017-04-26 09:04:21
Because you have added him tracked file
里了 用git rm --cached java/.idea/workspace.xml
Remove him
.gitignore This file is used for the ignore list of untracked
files
If you use add
将文件标记为 tracked
status .gitignore, it will be invalid