git .gitignore忽略了文件,每次提交还是会变更这个文件
给我你的怀抱
给我你的怀抱 2017-04-26 09:02:21
0
1
615

git .gitignore忽略了文件,每次提交还是会变更这个文件

.gitignore文件内容:
java/.idea/workspace.xml doc/*.tmp *.xml
每次commit都会有workspace.xml这个文件.

给我你的怀抱
给我你的怀抱

reply all (1)
刘奇

Because you have added himtracked file里了 用
git rm --cached java/.idea/workspace.xml
Remove him

.gitignore This file is used for the ignore list ofuntrackedfiles
If you useadd将文件标记为trackedstatus .gitignore, it will be invalid

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!