【发布时间】:2015-01-06 19:39:09
【问题描述】:
这可能很简单,但我不能让 git 忽略它。我已将不同的组合放入存储库根目录中的 .gitignore 文件中。
但我还是看到了:
$ git status
On branch master
Your branch is up-to-date with '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: .gitignore
modified: MyProject/build/.version
no changes added to commit (use "git add" and/or "git commit -a")
$
我的 .gitignore 文件中有“构建”。我尝试过“MyProject/build/.version”、“build/.version”、“.version”及其各种组合。但也许不是正确的组合。
【问题讨论】: