Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想忽略当前目录中存在的所有文件,但想跟踪所有目录和子目录。
我怎样才能做到这一点?
添加只是忽略所有内容*,.gitignore包括目录和子目录。如何只忽略文件,而不是目录。
*
.gitignore
# Ignore everything in this directory /* # Except for directories !/*/
您应该可以在下面添加一个排除部分*/*
*/*