Bluetail
Bluetail

Reputation: 1291

Cant commit in git bash using atom on Windows

I am trying to set up Atom as my default text editor in git bash.

however, I cant get the git commit command to execute..

I have used "git config --global core.editor "atom" to get this error: enter image description here

If I use " git config --global core.editor "atom --wait", then the error is about the powershell. enter image description here

In either case, Atom opens up ok, however I dont have a chance to write any changes before the Aborting commit message appears in bash, like here. enter image description here

My environmental path variable is set up ok (C:\Users\Maria\AppData\Local\atom\bin)

Not sure what else to check? I am on Windows 7. any advice?

so far, I'm getting by using git commit -m "my change" to circumvent this problem - yet I wish I could use Atom.

Upvotes: 2

Views: 257

Answers (1)

Brayan
Brayan

Reputation: 11

I had the exact same problem. I just ran the following line of code in the Windows command prompt and it got resolved:

git config --global core.editor "atom -w -d"

Upvotes: 1

Related Questions