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
Non significa:
type again git rebase -i HEAD~3
Prova a non digitando git rebase -i HEAD~3
quando si esce l'editor, e dovrebbe funzionare bene.
(in caso contrario, nella vostra particolare situazione, potrebbero essere necessari un git rebase -i --abort
per azzerare tutto e permetterà di provare ancora una volta)
Come Dave Vogt menzioni nei commenti, git rebase --continue
è per andare al prossimo compito nel ribasamento processo, dopo aver modificato il primo commit.
Inoltre, Gregg Lind menzioni his answer comando reword
di 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.
Ha lavorato con il comando --abort. Grazie –
Inoltre, 'git rebase --continue' passa all'attività successiva nel processo di rebasing, dopo aver modificato il primo commit. –
Aggiunta del [collegamento] (https://help.github.com/articles/changing-a-commit-message/) all'articolo di github wiki per la modifica di un messaggio di commit – Joy