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.
我需要忽略一个目录,但要跟踪该目录的一个子文件夹。我的文件树看起来像:
root -d1 --bin --bin/data -d2 --bin --bin/data
我需要忽略 bin 目录,但要跟踪我的 repo 的所有文件夹中的 bin/data 目录。现在我正在使用:
syntax: glob */obj/* */bin/* *.swp
但是当我运行 hg status 时,看不到我的数据目录中是否有新内容。
谢谢!
我认为这将满足您的需求。
syntax: glob */obj/* *.swp syntax: regexp /bin/(?!data)