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 trialabdi ali
10,920 Pointsevery 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
Blake Lieberman
23,772 PointsBefore you commit, you have to add.
git add .
This will add untracked files to be able to commit.
2 Answers
jeremy rackley
22,336 PointsBefore 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'
abdi ali
10,920 Pointsthanks it worked
abdi ali
10,920 Pointsabdi ali
10,920 Pointsgit commit -m "hello" On branch master
Initial commit
Untracked files: index.php
nothing added to commit but untracked files present