Git Won't Un-Ignore a Directory

前端 未结 5 1965
星月不相逢
星月不相逢 2020-12-31 08:26

I\'d like to only track certain directories in git in a larger project, where most directories will be excluded and only a few will be tracked. So, I wanted to use

5条回答
  •  星月不相逢
    2020-12-31 08:44

    In case none of the above works try this variation inside .gitignore

    Not working for me:
    !build/**/*
    Working for me:
    !build**/*
    

    For some reason this was the only way it worked for me.

提交回复
热议问题