I would like to exclude the all the files and all the subfolders from tracking for the given folders in my repository
- bin
- obj
I would like to exclude the all the files and all the subfolders from tracking for the given folders in my repository
Create a .gitignore
file in the current repository, and simply list the directories you want to ignore:
bin/
obj/
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
).