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 trialOmar Farag
4,573 Pointsgit 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
Dale Severude
Full Stack JavaScript Techdegree Graduate 71,350 PointsTo commit everything, add changed files to project with:
git add .
Then do the commit:
git commit -m "These are my new changes"
Dale Severude
Full Stack JavaScript Techdegree Graduate 71,350 PointsGit 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
Omar Farag
4,573 PointsI just get an error. Im not using the console, I'm taking a quiz. And git add . doesn't work.
Dale Severude
Full Stack JavaScript Techdegree Graduate 71,350 PointsPlease link to the quiz you are taking or post the question.
Volodymyr Boretskyi
9,094 PointsHey, try: git add --a, git commit -m "message"
Omar Farag
4,573 PointsOmar Farag
4,573 PointsI don't think the period is included though, right? Thanks anyways.
Omar Farag
4,573 PointsOmar Farag
4,573 Pointsgit add doesn't work