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 simple merges

Hi,

I am having trouble with the following answer:

Let's say that you've been working on a branch called rewrite_main_page, and you've just finished the last change you needed. First, commit your work.

I tried

git branch commit rewrite_main_page

but get the error 'Bummer! That was the wrong git command. Try again.'

2 Answers

Danny Guillot
Danny Guillot
4,754 Points

Do a git status first to ensure that your work is waiting to be committed. The file should appear in red.

Tommy Morgan
STAFF
Tommy Morgan
Treehouse Guest Teacher

Jordan Overbye - the error message is correct here, you're not using the right command.

Or more correctly, you're trying to use two different commands at once :) Remember that "branch" and "commit" are different commands with different purposes, and can't be used together.