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 trialRyan Tsai
3,767 Pointscould 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
Hayden Marcus
9,181 PointsHe hit control X, Y, and Enter.
^X Y Enter
Same as when he made the file originally and saved it for the first time.
Andres Morales
10,634 PointsAll 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
Melissa Webster
2,906 PointsAndres, 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)
elk6
22,916 PointsThanks, this was really helpfull.
Ted Sumner
Courses Plus Student 17,967 PointsI 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
10,634 PointsThanks Melissa, I had just figured it out!
Melissa Webster
2,906 PointsAndres, 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
11,256 PointsSome people shouldn't teach, by far the worst teacher on treehouse. Everyone else is perfect.
Travis Johnston
12,653 PointsKeep 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
Courses Plus Student 22,726 Pointsyou guys can also run this line
git config --global core.editor "nano"
and make nano your editor by defalut
hope that helps .
David Elston
8,112 PointsDavid Elston
8,112 PointsWould'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.