.gitignore exclude folder but include specific subfolder

后端 未结 17 1649
一个人的身影
一个人的身影 2020-11-21 06:36

I have the folder application/ which I add to the .gitignore. Inside the application/ folder is the folder application/language

17条回答
  •  眼角桃花
    2020-11-21 07:13

    I wanted to track jquery production js files and this worked:

    node_modules/*
    !node_modules/jquery
    node_modules/jquery/*
    !node_modules/jquery/dist/*
    

提交回复
热议问题