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 Trouble

I'm trying to follow the directions in the video...it's a little confusing because we already downloaded and set up a GIT command line, but in the video the instructor is using the console here on Treehouse. When it was time to commit, the git console asked me who I was and displayed some git config lines for me to give my email and my name. I did that, but now it says:

on branch master
Initial commit

Untracked files
           readme.txt
Nothing added to commit but untracked files present```

3 Answers

Stone Preston
Stone Preston
42,016 Points

did you add the files to the staging area before you commited?

you need to add any untracked files first using

git add . 

which will add the files in the current directory to the staging area.

then you can run the commit command

I went back and rewatched videos and used the Treehouse console so it wouldn't be confusing and I'm moving forward. Thanks for your help!

Stone Preston
Stone Preston
42,016 Points

there shouldnt be much difference between the two. In my opinion, you should try and work out what was going wrong on your machine and keep using your own. You arent going to be using the treehouse console when it comes to your own projects so its probably good to get git (haha) working now on your own machine. However like I said there shouldnt be much difference.

Thanks, I think I will soon, but right now, it's easier using Treehouse so I match what the instructor teaches.