Il dit:
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
Cela ne signifie pas:
type again git rebase -i HEAD~3
Essayez de pas tapant git rebase -i HEAD~3
lorsque vous quittez l'éditeur, et il devrait fonctionner correctement.
(autrement, dans votre situation particulière, un git rebase -i --abort
pourrait être nécessaire pour réinitialiser tout et vous permettre d'essayer à nouveau)
Comme Dave Vogt mentions dans les commentaires, git rebase --continue
est pour aller à la tâche suivante dans le rebasage processus, après avoir modifié le premier commit.
En outre, Gregg Lind mentions his answer la commande 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.
travaillé avec la commande --abort. Merci –
Aussi, 'git rebase --continue' va à la tâche suivante dans le processus de rebasage, après avoir modifié la première validation. –
Ajouter le [link] (https://help.github.com/articles/changing-a-commit-message/) à l'article wiki de github pour changer un message de validation – Joy