Ignoring directories in Git repositories on Windows

Create a file named .gitignore in your project’s directory. Ignore directories by entering the directory name into the file (with a slash appended):

dir_to_ignore/

More information is here.

Leave a Comment