Dice:
When you save and exit the editor, it will rewind you back to that last commit in that list and drop you on the command line with the following message:
$ git rebase -i HEAD~3
Stopped at 7482e0d... updated the gemspec to hopefully work better
You can amend the commit now, with
No significa:
type again git rebase -i HEAD~3
Tratar de no escribir git rebase -i HEAD~3
al salir del editor y que debería funcionar bien.
(de lo contrario, en su situación particular, una git rebase -i --abort
podrían ser necesarios para reiniciar todo y permitirá probar de nuevo)
Como Dave Vogt menciones en los comentarios, git rebase --continue
es para ir a la siguiente tarea en el cambio de base proceso, después de haber enmendado la primera confirmación.
Además, Gregg Lind menciones en his answer el comando reword
de git rebase
:
By replacing the command "pick" with the command "edit", you can tell git rebase
to stop after applying that commit, so that you can edit the files and/or the commit message, amend the commit, and continue rebasing.
If you just want to edit the commit message for a commit, replace the command " pick
" with the command " reword
", since Git1.6.6 (January 2010) .
It does the same thing ‘ edit
’ does during an interactive rebase, except it only lets you edit the commit message without returning control to the shell. This is extremely useful.
Currently if you want to clean up your commit messages you have to:
$ git rebase -i next
Then set all the commits to ‘edit’. Then on each one:
# Change the message in your editor.
$ git commit --amend
$ git rebase --continue
Using ‘ reword
’ instead of ‘ edit
’ lets you skip the git-commit
and git-rebase
calls.
Trabajado con el comando --abort. Gracias –
Además, 'git rebase --continue' va a la siguiente tarea en el proceso de rebase, después de haber enmendado la primera confirmación. –
Agregar el [enlace] (https://help.github.com/articles/changing-a-commit-message/) al artículo de github wiki para cambiar un mensaje de confirmación – Joy