【发布时间】:2012-07-18 23:29:54
【问题描述】:
我在使用 Aptana 3 时遇到问题。我可以从 github 克隆一个项目。但我的问题是 gitignore 文件无法正常工作。当我修改 gitignore 列表中的文件时,它仍然显示在修改或提交列表中。
如果我通过控制台执行 git init,Aptana ui 不会显示文件修改。当我通过 UI 对其进行初始化时,修改后的文件会在修改时显示星号,但 gitignore 文件(来自 github 存储库)不起作用。有没有简单的方法解决这个问题?
谢谢。
我的 gitignore 文件中的示例
config/database.yml
修改此文件仍然显示
Git 状态返回以下...
$ git status
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: .gitignore
#
# 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: Gemfile.lock
# modified: config/database.yml
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# .project
【问题讨论】:
-
能否请您发布您的 .gitignore 文件和提交的文件名?
-
添加了 sn-p 代码的照片
-
您能否也将
git status的命令行输出粘贴到 aptana 隐藏存储库的控制台上。
标签: git version-control github aptana aptana3