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 trial

Development Tools Git Basics Getting Started With Git Committing Changes

git add README doesn't work!

Windows 7 git bash

Follow the course, but the git add command doesn't work! Pathspec 'README' does not match any files

why???

3 Answers

Cherie Burgett
Cherie Burgett
8,711 Points

in windows when you save from notepad it will change the file from README to README.txt. I ran into this myself and the instructor actually made some notes concerning windows in the teachers notes under the windows installation video.
It was suggested you can rename the file back if you wish by using the mv command. I just went through these the past couple days using windows. Hang in there its worth it.
link to my thread asking questions about git and windows. https://teamtreehouse.com/forum/getting-frustrated-with-git-on-windows

Wade Christensen
STAFF
Wade Christensen
Treehouse Teacher

Are you sure you're in the right directory? You might need to cd to the directory where the README file is living.

Thanks all the same! Are u sure you really understand what I'm asking?

Thanks Cherie! It worked!