简体   繁体   English

.gitignore文件忽略所有文件,但不忽略嵌套文件

[英].gitignore file to ignore all files but not nested ones

我的.gitignore文件应该是什么样子,以便忽略存储库根目录中的所有文件,而不忽略嵌套路径中的文件?

Try this in the .gitignore: 在.gitignore中尝试以下操作:

/*
!/*/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM