.gitignore exclude folder but include specific subfolder

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

    This worked for me:

    **/.idea/**
    !**/.idea/copyright/
    !.idea/copyright/profiles_settings.xml
    !.idea/copyright/Copyright.xml
    

提交回复
热议问题