84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
git .gitignore忽略了文件,每次提交还是会变更这个文件
.gitignore文件内容:java/.idea/workspace.xml doc/*.tmp *.xml每次commit都会有workspace.xml这个文件.
java/.idea/workspace.xml doc/*.tmp *.xml
Because you have added himtracked file里了 用git rm --cached java/.idea/workspace.xmlRemove him
tracked file
git rm --cached java/.idea/workspace.xml
.gitignore This file is used for the ignore list ofuntrackedfilesIf you useadd将文件标记为trackedstatus .gitignore, it will be invalid
untracked
add
tracked
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
filesIf you use
add
将文件标记为tracked
status .gitignore, it will be invalid