Windows – Ignoring directories in Git repositories on Windows


How can I ignore directories or folders in Git using msysgit on Windows?

Best Solution

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


More information is here.