When I want to add the whole directory to my .gitignore, what is the syntax? The ignore directory is in my root directory.
Should it be:
1) directory-to-ignore
directory-to-ignore
2) directory-to-ignore/
directory-to-ignore/
3) directory-to-ignore/*
directory-to-ignore/*
just add the directory to .gitigore, for example:
.gitignore file:
therefore parameter 2 is correct