When I want to add an entire directory to my .gitignore, what is the syntax? The directory-to-ignore is in my root directory.
Should it be:
1) directory-to-ignore
2) directory-to-ignore/
3) directory-to-ignore/*
just add the directory to the .gitigore like:
.gitignore file:
directory-to-ignore/
so, option 2 is correct
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