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 trialTracy Excell
Front End Web Development Techdegree Graduate 15,333 PointsGit Bash error, help understanding what is going wrong
Hello,
I am working through the Git track and am trying to add a repository and README file on a windows PC. I am getting this error and am not sure what is going wrong.
````Initial commit
Untracked files:
README.txt
nothing added to commit but untracked files present
tracyandgrant@DESKTOP-0EUKSQJ MINGW64 ~/project-1 (master)
$ notepad README
tracyandgrant@DESKTOP-0EUKSQJ MINGW64 ~/project-1 (master)
$ git commit -a -m "added information to practice"
On branch master
Initial commit
Untracked files:
README.txt
nothing added to commit but untracked files present
tracyandgrant@DESKTOP-0EUKSQJ MINGW64 ~/project-1 (master)
$
If you know what I am doing wrong, your help would be appreciated.
1 Answer
Jennifer Nordell
Treehouse TeacherHi there! It looks like you haven't added the files to the staging area yet. You have changes, but until you add them to the "staging area" you will be unable to commit them. Try this first: git add .
Note the period/full stop one space away from "add". This denotes that all files in the current directory will be added to the staging area. Then try your git commit.
Hope this helps!
Tracy Excell
Front End Web Development Techdegree Graduate 15,333 PointsTracy Excell
Front End Web Development Techdegree Graduate 15,333 PointsThank you.