.gitignore exclude folder but include specific subfolder

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

    In WordPress, this helped me:

    wp-admin/
    wp-includes/
    /wp-content/*
    !wp-content/plugins/
    /wp-content/plugins/*
    !/wp-content/plugins/plugin-name/
    !/wp-content/plugins/plugin-name/*.*
    !/wp-content/plugins/plugin-name/**
    

提交回复
热议问题