Home > Software design >  GIT Error "hint: Waiting for your editor to close the file
GIT Error "hint: Waiting for your editor to close the file

Time:09-18

like the title mentions I get this error "hint: Waiting for your editor to close the file... " every time I try to commit with this command: git commit. I must mention I am able to commit whilst leaving a message using (-m)

brand new developer here, literally, this is my 4th day at w. development school.
I am using the Pixelbook (Chromebook), Set up with Linux (Beta), it comes with the pixel book. I am using Visual Code Editor (the only one I can use for now because of school)

I told the teachers but they told me not to worry about it but I do. I do not wanna move onto something way harder and then have to deal with a bunch of installing and uninstalling that I do not even understand. Will I ever need to commit whilst using this command: "git commit"? or is it always good to leave a small comment?

I tried doing this enter image description here

Stage files

enter image description here

Write your commit message

enter image description here

CodePudding user response:

Git is designed to operate with a wide variety of editors. Some of those editors are terminal-based, like some versions of vi and Emacs, and some are graphical, like Visual Studio Code or Atom.

When Git spawns an editor, it doesn't know whether or not it will be graphical. However, if the editor is graphical, then it may pop up in a window that isn't immediately visible: for example, it may end up behind the current window. This message simply indicates to the user that Git isn't hung; it's waiting for you to edit the commit message, save, and quit the editor. It's merely a helpful hint to help users avoid a potentially confusing situation.

  • Related