Found a very useful template file to exclude folders like bin and obj.
The template is available at the following github location:
https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
Just create a “.gitignore” file inside your project where you have setup your git repository and copy and paste the content from the link above to this file.
Get rid of bins!