Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.