.gitignore and Visual Studio project: Ignore bin/Debug directory but not bin/Release directory

后端 未结 9 919
一个人的身影
一个人的身影 2021-01-30 03:51

I have a C# Visual Studio project in a git repository. I want to ignore the contents bin/Debug directory but not the contents of the bin/Release\' dire

9条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-30 04:36

    This works for me:

    *.exe
    *.pdb
    *.manifest
    *.cache
    

    If you are using GitHub Desktop as I am using it, you can just right click the file you want to exclude or right click it and exclude by extension:

    This will automatically generate a .gitignore file for you with the code like above. You can download GitHub Desktop here: GitHub Desktop for Windows 64-bit.

提交回复
热议问题