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 commit -a Not working

It wants me to commit all changes in the repository. I used git commit -a, but its not working

4 Answers

To commit everything, add changed files to project with:

git add .

Then do the commit:

git commit -m "These are my new changes"

I don't think the period is included though, right? Thanks anyways.

git add doesn't work

Git add with a period adds all changed files or can also do only a single file.

git add filename

If git add is not working, what do you see when you do git status?

git status

I just get an error. Im not using the console, I'm taking a quiz. And git add . doesn't work.

Please link to the quiz you are taking or post the question.

Hey, try: git add --a, git commit -m "message"