How could I ignore bin and obj folders from git repository?

后端 未结 9 1306
死守一世寂寞
死守一世寂寞 2020-12-12 13:00

I want to ignore bin and obj folders from my git repository. As I\'ve found out, there is no easy way to do this in .gitignore. So, are there any other way? Using clean solu

9条回答
  •  北荒
    北荒 (楼主)
    2020-12-12 13:31

    In my case, bin and obj folders were nested under Project folder from the root .gitignore file, so I had to add it like below:

    [PROJECT_FOLDER_NAME]/bin
    [PROJECT_FOLDER_NAME]/obj

    Replace PROJECT_FOLDER_NAME with your project folder name

提交回复
热议问题