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 Basics Getting Started With Git Committing Changes

Ryan Tsai
Ryan Tsai
3,767 Points

could teacher tell us what he hit on keyboard?

i don't know what he did on the keyboard. i stuck off at git commit. i don't know how to stores and leave

7 Answers

He hit control X, Y, and Enter.

^X   Y   Enter

Same as when he made the file originally and saved it for the first time.

David Elston
David Elston
8,112 Points

Would've been pretty helpful to have just stated that. Sadly I fiddled with this for longer than I'd like to admit for such a simple answer.

Andres Morales
Andres Morales
10,634 Points

All I see after typing control + x is this at the bottom: -- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y), then I press y and enter, and it is typed as a message at the top of the prompt. Am I doing something wrong? I also press control Y right after control x, and get the same result

Andres, you are in a different text editor. If you see "Insert" at the bottom, click the ESC button. Once you no longer see INSERT, then you want to type ":wq" without the quotes. This will accomplish saving and quitting the text editor. (which is what you want)

Thanks, this was really helpfull.

I am not sure what the instructor hits on the keyboard, but the command to commit is:

git commit -m 'commit message here'

You can leave off the -m 'message' if you want, but you get a prompt to enter the information that is not intuitive at all how to use.

Andres Morales
Andres Morales
10,634 Points

Thanks Melissa, I had just figured it out!

Andres, I did the same exact thing the other day :) (I simply got to delete my post here before anyone responded to it! haha!)

George Nono
George Nono
11,256 Points

Some people shouldn't teach, by far the worst teacher on treehouse. Everyone else is perfect.

Travis Johnston
Travis Johnston
12,653 Points

Keep in mind that he starts the whole GIT course off by stating that you should have an understanding of working in the console and should take the unix course if you have trouble.

He's actually so far a pretty good teacher. I already know GIT, just doing the course for points and I'm sure there are some areas where I need improvement, and he's doing a heck of a lot better job then the person that originally told me how to use GIT.

james rochabrun
PLUS
james rochabrun
Courses Plus Student 22,726 Points

you guys can also run this line

git config --global core.editor "nano"

and make nano your editor by defalut

hope that helps .