I have the following directory structure:
test/a
test/b/c
test/a/b/Ouput
test/c/d/e/Output
test/f/Output
I want to ignore all the "Output" directories under "test". I tried test/**/Output
, but it didn't work. What am I doing wrong?
You said you want the Output/
pattern to match only under the test/
directory, so in the test/
directory, create a .gitignore
file with the contents:
Output/
If you put this pattern in your top-level .gitignore
file, then it will match in all directories under the top directory.
从1.8.2版本 ( 2013年3月8日 )开始,git支持.gitignore
文件中的**,因此使用test/**/Output/
将仅忽略test目录下的Output子目录。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.