.gitignore exclude folder but include specific subfolder

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

    my JetBrains IntelliJ IDEA .gitignore configuration, where I need exclude wholde .idea folder except .idea/runConfigurations:

    .idea
    !.idea/
    .idea/*
    !.idea/runConfigurations/
    

    see: https://github.com/daggerok/gitignore-idea-runConfigurations

提交回复
热议问题