How to git ignore subfolders / subdirectories?

后端 未结 10 1180
孤街浪徒
孤街浪徒 2020-11-28 00:30

I have a lot of projects in my .Net solution. I would like to exclude all \"bin/Debug\" and \"bin/Release\" folders (and their contents), but still include the \"bin\" folde

10条回答
  •  鱼传尺愫
    2020-11-28 00:54

    To ignore all subdirectories you can simply use:

    **/
    

    This works as of version 1.8.2 of git.

提交回复
热议问题