Soy relativamente nuevo en git. ¿Podría alguien, por favor, ayudarme a funcionar git rebase --interactivecorrectamente? Lanza un error cuando intento ejecutarlo.
Nota : No quiero desinstalar Xcode a menos que sea inevitable (porque algunos paquetes requieren herramientas para compilar).
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 --helpopción.
git version 1.9.3 (Apple Git-50)

[0-9]lugar de[0123456789]Respuestas:
El problema es que
git rebase -ino me dijeron qué editor usar. Por lo tanto, se soluciona estableciendo uno.Supongamos que nuestro editor es
vim(onano, o w / e). Entonces tambienexport GIT_EDITOR=vim(global)o
git config --global core.editor "vim"(local)Resolvería el problema.
El crédito va a glenn jackman https://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
fuente