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 trialRaghda Talaa't
2,944 Pointsgit add on PC doesn't work
I'm listening to Git Basics course and in the 'committing changes video', I'm trying to add the README file i've just created using "git add README" but it gives me this error "fatal: pathspec 'README' did not match any files". although i found the README.txt file in that location.
1 Answer
Stone Preston
42,016 Pointstry
git add README.txt
maybe?
Raghda Talaa't
2,944 PointsRaghda Talaa't
2,944 PointsIt gives me another error: "fatal: Not a git repository (or any of the parent directories): .git"
But actually i removed the .txt and it worked but i don't know if this is the best solution or what
Stone Preston
42,016 PointsStone Preston
42,016 Pointshmm are you sure you actually initialized a git repo in your projects root?
Raghda Talaa't
2,944 PointsRaghda Talaa't
2,944 Pointsyes i forgot to initialize it because i created a new project to test on. Thank you and thanks for your quick reply as well :)