Git使用绝对路径忽略目录

时间:2014-04-21 11:30:01

标签: linux git centos

绝对目录路径可以在.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]$

0 个答案:

没有答案
相关问题