.gitignore exclude folder but include specific subfolder

后端 未结 17 1632
一个人的身影
一个人的身影 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:18

    So , since many programmers uses node . the use case which meets this question is to exclude node_modules except one module module-a for example:

    !node_modules/
    
    node_modules/*
    !node_modules/module-a/
    

提交回复
热议问题