This is the code,Im using the ubuntu terminal to run.
(base) pra:~/my_project/demo$ git commit
hint: Waiting for your editor to close the file... 'C:/Program Files/Notepad /notepad .exe' -multiInst -notabbar -nosession -noPlugin: 1: C:/Program Files/Notepad /notepad .exe: not found
error: There was a problem with the editor ''C:/Program Files/Notepad /notepad .exe' -multiInst -notabbar -nosession -noPlugin'.
Please supply the message using either -m or -F option.
(base) pra:~/my_project/demo$ git config --global core.editor "'C:/Program Files (x86)/Notepad /notepad .exe' -multiInst -notabbar -nosession -noPlugin"
(base) pra:~/my_project/demo$ git commit
hint: Waiting for your editor to close the file... 'C:/Program Files (x86)/Notepad /notepad .exe' -multiInst -notabbar -nosession -noPlugin: 1: C:/Program Files (x86)/Notepad /notepad .exe: not found
error: There was a problem with the editor ''C:/Program Files (x86)/Notepad /notepad .exe' -multiInst -notabbar -nosession -noPlugin'.
Please supply the message using either -m or -F option.
(base) pra:~/my_project/demo$
I tried the solution on this link notepad not working in Git Bash , but Im unable to resolve the error.
This is the error I get on git commit
error: There was a problem with the editor ''C:/Program Files (x86)/Notepad /notepad .exe' -multiInst -notabbar -nosession -noPlugin'
How do I resolve this
EDIT:
output from git config --list
:
(base) pra:~/my_project/demo$ git config --list
user.name=Pra
[email protected]
core.editor='C:/Program Files (x86)/Notepad /notepad .exe' -multiInst -notabbar -nosession -noPlugin core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
CodePudding user response:
I removed the editor
from config and it worked.