Can I gitignore files with a prefix?

前端 未结 2 1985
忘了有多久
忘了有多久 2021-01-02 05:33

I have file a.css and b.css in the same folder. My framework combines those files in a file called temp.a12cab4598347b07f0079d.css<

相关标签:
2条回答
  • 2021-01-02 06:00

    It will work as expected.

    Also, if you need to do this recursively in any subdirectory

    **/temp.*.css
    
    0 讨论(0)
  • 2021-01-02 06:19

    Yes, that works just fine. The wildcard character in the middle of your string works well.

    A great reference for gitignore patterns, matching, and rules is the official documentation on gitignore.

    0 讨论(0)
提交回复
热议问题