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

后端 未结 9 1294
死守一世寂寞
死守一世寂寞 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:20

    If you have committed the bin and obj folders previously, adding them to .gitignore will not automatically delete them. You need to commit deleting these folders with for example git rm -rf obj or git rm -rf yourProject/obj then commit the deletion

提交回复
热议问题