绝对目录路径可以在.gitignore中使用吗?我在/var/www/bidjunction/.gitignore中添加了以下内容,但仍然跟踪了html。为什么还要跟踪?
/var/www/bidjunction/html/
EDIT。有点偏离主题,但是当我不使用绝对路径时,什么都没有添加。
[Michael@devserver bidjunction]$ cat .gitignore
html/
[Michael@devserver bidjunction]$ git add *
The following paths are ignored by one of your .gitignore files:
html
Use -f if you really want to add them.
fatal: no files added
[Michael@devserver bidjunction]$