有没有办法将目录添加到Git,但排除.gitgnore中的扩展名?有没有办法将目录添加到Git,但排除.gitgnore中的扩展名?
e.g当我执行的命令,如
git add console/*
混帐与响应
$ git add console/*
The following paths are ignored by one of your .gitignore files:
console/networkprobing.ppu
console/opsdatamodule.lrs
console/opsdatamodule.o
console/opsdatamodule.ppu
console/rcacsSystemDM.compiled
console/rcacsSystemDM.o
console/rcacsSystemTestProcs.o
console/rcacsSystemTestProcs.ppu
Use -f if you really want to add them.
fatal: no files added
如何可以在命令进行自动排除的.gitignore扩展响应添加目录? 是否有一些其他选项需要传递?
看起来你已经忽略了`console /`中的所有文件。如果不是这样,你的`.gitignore`文件中有什么,你不想排除什么? – 2011-01-22 12:15:28