-1

I used an Interactive rebase tool git rebase -i HEAD~N to retrieve older commits but it's throwing following error on the terminal.

hint: Waiting for your editor to close the file... brackets -n -w: brackets: command not found

error: There was a problem with the editor 'brackets -n -w'.

Note: I don't even have Brackets editor installed on my Mac. I uninstalled it long time back.

Any advice on how to fix this issue?

Thanks

phd
  • 82,685
  • 13
  • 120
  • 165
Shashi
  • 1
  • 5
  • https://stackoverflow.com/search?q=%5Bgit%5D+hint%3A+Waiting+for+your+editor+to+close+the+file+command+not+found – phd May 20 '20 at 12:58

1 Answers1

0

Configure your git to use the editor you want, for example:

git config --global core.editor vim

Then run the rebase again.

1615903
  • 32,635
  • 12
  • 70
  • 99
  • What's the command for Visual Studio Code Editor? `git config --global core.editor vsc` or `git config --global core.editor visual studio code` **I tried both but to no avail.** – Shashi May 20 '20 at 09:03
  • https://code.visualstudio.com/docs/editor/versioncontrol#_vs-code-as-git-editor – 1615903 May 20 '20 at 09:06
  • `code --help` `git config --global core.editor "code --wait"` `git config --global -e` – Shashi May 20 '20 at 09:35