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 trialHelen Anderson
6,519 Pointsgit commit in windows
I'm using windows for the Git Basics course.
At 2 minutes into the video Committing Changes, I'm stuck. Notepad is not opening to edit the git commit. The text in my window displays as the video at 2.09 in the black command prompt window.
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
#
# Initial commit
#
# Changes to be committed:
# (use "git rm --cached <file>..." to unstage)
#
# new file: README.txt
#
How do I name and save the commit?
3 Answers
Benjamin Botwin
13,434 PointsYou can do the whole thing from the command line like this
<code> git commit . -m <message> </code>
I think it's easier than having a new editor open all the time
Helen Anderson
6,519 PointsNote for Treehouse .... Then I continued with the video, and found Tommy covers this later (approx 6 mins). Perhaps this needs to be earlier in the video.
Helen Anderson
6,519 PointsThanks Benjamin, that seems to have worked.