【发布时间】:2018-08-31 10:13:31
【问题描述】:
我的代码结构是:
.gitignore
my-service << this is a file without an extention
charts
| my-service << this is a folder
| | file1
| | file2
当我在 gitignore my-service 中写入时,它会忽略 my-service 文件和 my-service 文件夹。
如何只忽略根目录中的文件,而不忽略子目录?
【问题讨论】: