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 中指定一组可接受的文件类型来限制 git 跟踪的文件类型?
我希望能够限制提交到我的编译目录的文件类型。我知道解析器不是正则表达式,但我想要这样的东西。
!src/(*.js|*.html|*.css)
你可以做
src/* !src/*.js !src/*.css !src/*.html