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

Is there a different way to commit changes besides > git commit -a -m "Added README.md and prototype files." ??????

We could not figure out the correct answer.

2 Answers

Aaron HARPT
Aaron HARPT
19,845 Points

git commit -m "message" after git add .

Jake Adams
Jake Adams
1,608 Points

There are a couple ways to commit

  1. Multi step:

    1. git add . (stages changes for committing)
    2. git commit -m [message here]
  2. Shorter than your question, but not by much:

    1. git commit -am [message here]

The other option would be to create a git alias for the command. I know of no other way besides the 2 above.