我在我的git项目中有以下文件&目录结构。GitIgnore!子目录中的文件
CONF /的.gitignore
CONF/_conf.example
CONF/conf.sh
CONF/INIT/_init.example
CONF/INIT/init.sh
的GIT中忽略写为:
# Ignore all files except the examples.
*
!.gitignore
!_conf.example
!init/_init.example
我已经将.gitignore添加到git。除conf.sh之外,所有文件都将被忽略,而conf.sh与.gitignore文件驻留在同一目录中。我的意图是不要忽略嵌套的init目录中的_init.example文件,但我的配置没有正确执行此操作。
任何想法我做错了什么?
我可以问你的'git status'说什么吗? – ForgetfulFellow