How to ignore all folders with name build
, bin
. I tried doing this
**/bin/
**/build/
but it doesn't work. in git status i see
# new file: BS/server/build/obj/sender.o
# new file: BS/server/build/obj/sendistate.o
# new file: BS/server/build/obj/serializedata.o
# new file: BS/client/bin/gc.sample.xml
# new file: BS/client/bin/mkab.qss
# new file: BS/client/bin/mkaberr.qss
# new file: BS/client/build/debug/application.qss
# new file: BS/client/build/debug/config.xml
Personal Ignore Rules Patterns that are specific to your local repository and should not be distributed to other repositories should be set in the . git/info/exclude file. For example, you can use this file to ignore generated files from your personal project tools.
When created in the top level directory, the rules will apply recursively to all files and sub-directories throughout the entire repository. When created in a sub-directory, the rules will apply to that specific directory and its sub-directories. When a file or directory is ignored, it will not be: tracked by Git.
gitignore in every subdirectory. This way you can ignore files on a finer grained level if different folders need different rules. Moreover, you can define repository specific rules which are not committed to the Git repository, i.e. these are specific to your local copy.
If you want to ignore directory, you should be "directoryname/". For example
bin/
build/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With