0

I was following this post and came across the error in the title when attempting

git rebase -i origin/master

the code again:

/user/libexec/git-core/git-rebase--interactive: line 237: nano: command not found

could not execute editor

Community
  • 1
  • 1
k4kuz0
  • 945
  • 1
  • 8
  • 22
  • Is the text editor 'nano' installed on your system? What OS are you working on? – reto Feb 12 '14 at 08:31
  • @reto I am not sure I am very new to using git, I am following that guide because I think I left a password in my local git repository. Windows 7 – k4kuz0 Feb 12 '14 at 08:32
  • @reto sorry but I have no idea. I just installed git from [here](http://git-scm.com/) and installed it with default settings. No fancy stuff on my end. – k4kuz0 Feb 12 '14 at 08:37
  • 3
    answer to this post can help you http://stackoverflow.com/a/773973/2842568 – Vlad Nikitin Feb 12 '14 at 08:40
  • @VladNiktin Thanks! That worked I'm using Notepad++ now :) – k4kuz0 Feb 12 '14 at 08:45
  • possible duplicate of [How can I set up an editor to work with Git on Windows?](http://stackoverflow.com/questions/10564/how-can-i-set-up-an-editor-to-work-with-git-on-windows) – Aaron Digulla Feb 12 '14 at 08:47

1 Answers1

2

the git rebase -i wasn't told what editor to use, use this following command to solve the problem.

export GIT_EDITOR=nano (global)

or

git config --global core.editor "nano" (local)

replace 'vim' in place of 'nano' for vim editor

Bhaskar S
  • 21
  • 3