How can I exclude the folders and subfolders from Tracking

I would like to exclude the all the files and all the subfolders from tracking for the given folders in my repository

  1. bin
  2. obj


Create a .gitignore file in the current repository, and simply list the directories you want to ignore:


Note that git will still track anything in those directories that’s already committed, if you don’t want that you have to delete those files from the repository (git rm).