我无法阻止 git 查看我的 .DS_Store 文件
I cannot stop git from looking at my .DS_Store file
我的 .gitignore 文件的前几行如下所示:
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
.DS_Store
所以我很困惑,因为我一直看到这条消息:
'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: Test/.DS_Store
Untracked files:
似乎无法识别 .gitignore 条目。
尝试像这样删除 .DS_Store
文件:
git rm .DS_Store
似乎该文件已添加到存储库一次,因此可能需要再次删除它。从那时起,它应该被忽略,如 .gitignore
文件中指定的那样。
我的 .gitignore 文件的前几行如下所示:
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
.DS_Store
所以我很困惑,因为我一直看到这条消息:
'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: Test/.DS_Store
Untracked files:
似乎无法识别 .gitignore 条目。
尝试像这样删除 .DS_Store
文件:
git rm .DS_Store
似乎该文件已添加到存储库一次,因此可能需要再次删除它。从那时起,它应该被忽略,如 .gitignore
文件中指定的那样。