Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAbe Layee
8,378 Pointsfatal: pathspec 'main.html' did not march any files
Hi, I am trying to add main.html to my .git folder. Each time I run git add main.html, I keep getting this error fatal: pathspec 'main.html' did not march any files. I am using window 10 and git bash. What am I doing wrong or the meaing of the error?
1 Answer
Ted Sumner
Courses Plus Student 17,967 PointsI am guessing, but I think your path to main.html is not correct in your git repository. Check to make sure main.html is in the git monitored folder and you are giving it the proper path. I have never tried to add a single file. I always have it give me all the changes in the project, so I cannot really help you more than that.