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 Working With Git Repositories

every time want to commit i get these answers what does it mean?

every time i want git to commit i get these answers what does int mean any one know help

git commit -m "hello" On branch master

Initial commit

Untracked files: index.php

nothing added to commit but untracked files present

Blake Lieberman
Blake Lieberman
23,772 Points

Before you commit, you have to add.

git add . 

This will add untracked files to be able to commit.

2 Answers

jeremy rackley
jeremy rackley
22,336 Points

Before you can commit you need to add your untracked files by using the command git add <filename> where filename is the name of the untracked file, in your case above you would use git add index.php and the git commit -m 'hello'

thanks it worked