我的代码结构是:
.gitignore
my-service << this is a file without an extention
charts
| my-service << this is a folder
| | file1
| | file2
当我在我的 gitignore 文件中写入 my-service
时,它会忽略文件和文件夹 my-service
。
如何只忽略根目录下的文件,而不是子目录?
我的代码结构是:
.gitignore
my-service << this is a file without an extention
charts
| my-service << this is a folder
| | file1
| | file2
当我在我的 gitignore 文件中写入 my-service
时,它会忽略文件和文件夹 my-service
。
如何只忽略根目录下的文件,而不是子目录?