Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I fix git commit error after closing the editor window?

Tags:

git

github

I nearly started learning Git and GitHub very recently, and I need help with this:

https://i.stack.imgur.com/wIqw8.png

Whenever I close the text editor, it gets an error instead of adding the commit.

like image 240
Abd El Rahman Diaa Avatar asked Oct 17 '22 16:10

Abd El Rahman Diaa


1 Answers

Can you check how your editor is configured?

git config --global core.editor

Check this answer, and edit your config file with git config --global --edit, to add quotes:

editor = 'atom -w'

Check also atom/atom issue 16805:

Especially since Atom 1.24.0 it happens quite regularly that Atom freezes after starting.
The freeze is not complete but rather the menu partially works but it is not possible to edit any already open files or to open a new file.

When starting Atom with the --foreground option and it does not completely freeze the following message is shown:

Attempting to call a function in a renderer window that has been closed or released.
Function provided here: Object.<anonymous> (C:\Users\doberkofler.LBITS\AppData\Local\atom\app-1.24.0\resources\app.asar\node_modules\github\lib\worker.js:71:22   
Remote event names: destroyed, crashed
like image 164
VonC Avatar answered Oct 19 '22 23:10

VonC