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

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

    simply making an entry in gitignore may not ignore files, you may need to commit it. I used the following method and worked for me

    git rm -r --cached .
    
    git add .
    

    then

    git commit -am "Remove ignored files"
    

    However, this ignores my scripts folder which I included later into the repository.

提交回复
热议问题