0

EDIT: It's solved! Thanks :)

I'm using Windows 10 OS and trying to learn git through Git Bash. But the commit command isn't working. I'm new to git and learning it from Youtube tutorials.

Screenshot of the problem

Shmar
  • 1
  • 1
  • 7
  • Looks like you don't have your editor set up properly. Pass the commit message directly from the command line for now until you can sort it out, e.g. `git commit -m "My first commit"`. – Paul R Feb 21 '18 at 10:20
  • try `git commit -m "your commit message"` – Fredrik Pihl Feb 21 '18 at 10:21
  • 2
    You seems to have selected VScode as your message editor, but "code" is not accessible from PATH, you should check it if is properly installed, or provide full path to it in configuration – max630 Feb 21 '18 at 10:23
  • I believe I'm using Sublime Text as my text editor, cause I remember learning a bit from Udacity and using the following codes: – Shmar Feb 21 '18 at 10:54
  • git config --global core.editor "'C:/Program Files/Sublime Text 2/sublime_text.exe' -n -w" – Shmar Feb 21 '18 at 10:55
  • also, I don't have Visual Studio Code installed – Shmar Feb 21 '18 at 10:55

0 Answers0