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

Carlo Antonio Bilbao
Carlo Antonio Bilbao
24,113 Points

Using Git Bash on Windows, Git Commit Problems and Others

So I had a lot of problems using Git Bash on my windows OS and kind of wanted to leave a couple of tips just in case other people run into the same problem.

  1. Problems with git commit:

First, if you type in git commit README.txt (README.txt for this specific exercise) and you run into a window that is multi colored and are unable to type on the screen. Then you are most likely using the default editor, which is vim.

Solution (that i used): Press esc and type ":wq" (w- means for write, q - means for quit) and press enter.

  1. Download GitPad: https://github.com/github/gitpad

This becomes your editor instead of vim

  1. Use git commit -m "your message" to commit

This was how I was able to commit to the repository.

Hope this helps. Also, this was how I solved my Windows + Git problems based on questions on treehouse and google so not sure how legit it is, but it helped me. Good luck.

P.S. Treehouse should fix this tutorial as it is obviously not taught well based on the confusion in the questions section. Just my 2 cents.

Carlo Antonio Bilbao
Carlo Antonio Bilbao
24,113 Points

Also, here's a youtube tutorial series for git on windows. I watched til the 11th episode. good and straight forward stuff.

https://www.youtube.com/watch?v=cEGIFZDyszA

2 Answers

I was able to get the commit completed (i think) by typing :exit. when i entered the : character, VIM opened up a prompt to accept commands. This is my first time trying this, so i don't really know what i'm talking about, but it did seem to work.

This was very valuable info. Thank you.