Explore Courses Blog Tutorials Interview Questions
+11 votes
1 view
in DevOps and Agile by (19.4k points)
edited by

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

1 Answer

+11 votes
by (27.5k points)
edited by

All you need to do is create a file named .gitignore in your project's directory. Then you can ignore directories by entering the directory name into the file (with a slash appended):


For more infomation read this official doc from git-scm

For more commands like this please go through the following tutorial that will help you understand the git

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers


94.2k users

Browse Categories