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

chester89 picture chester89 · Feb 27, 2010 · Viewed 84.2k times · Source

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 solution in Visual Studio?

Answer

Tim Robinson picture Tim Robinson · Feb 27, 2010

I'm not sure why this doesn't work for you. In case it helps, here's a typical .gitignore file from one of my Visual Studio/git projects:

*.suo
*.user
_ReSharper.*
bin
obj
packages