Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Development Tools

Helen Anderson
Helen Anderson
6,519 Points

git 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
Benjamin Botwin
13,434 Points

You 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
Helen Anderson
6,519 Points

Note 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
Helen Anderson
6,519 Points

Thanks Benjamin, that seems to have worked.