我的.gitignore
文件似乎被Git忽略了-.gitignore
文件会损坏吗?Git期望哪种文件格式、语言环境或文化?
我的.gitignore
:
# This is a commentdebug.lognbproject/
输出git status
:
# On branch master# Your branch is ahead of 'origin/master' by 1 commit.## Untracked files:# (use "git add <file>..." to include in what will be committed)## debug.log# nbproject/nothing added to commit but untracked files present (use "git add" to track)
我希望debug.log
和nbproject/
不要出现在未跟踪的文件列表中。
我应该从哪里开始寻找解决这个问题?