git rebase --interactive arroja un error

git rebase --interactive arroja un error

Soy relativamente nuevo en git. ¿Alguien podría, por favor, ayudarme a ejecutar git rebase --interactivecorrectamente? Tira un error cuando intento ejecutarlo.

Nota: No quiero desinstalar Xcode a menos que sea inevitable (porque algunos paquetes requieren sus herramientas para compilarse).

Aquí está el error:

$ git rebase -i /Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/git-rebase--interactive: line 234: -w: command not found Could not execute editor

Este archivo, por supuesto, existe, es un script de shell ejecutable y no tiene ninguna --helpopción.

git version 1.9.3 (Apple Git-50)

Respuesta1

El problema es que git rebase -ino me dijeron qué editor usar. Por lo tanto, se soluciona estableciendo uno.

Afirmemos que nuestro editor es vim(o nano, o w/e). Entonces tambien

export GIT_EDITOR=vim(global)

o

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

Resolvería el problema.

Créditova a glenn jackmanhttps://superuser.com/users/4714/glenn-jackman

Pregunta relacionada https://stackoverflow.com/questions/2596805/how-do-i-make-git-use-the-editor-of-my-choice-for-commits

información relacionada