git amend
Para aplicar as alterações mais recentes ao último commit, acesse Tools > Git > Local Repository > Amend Last Commit.

Alterando um commit do Git
Para visualizar o log do branch atual, selecione o nome do branch em Branch.
Para visualizar o commit em sua forma atual antes da alteração, selecione Show HEAD.
Para visualizar um diff das alterações nos arquivos selecionados, selecione Diff Selected Files.
Selecione “ Commit ” para alterar o commit.
Alterar commits relacionados
Para corrigir um commit anterior em uma série de commits relacionados, selecione “ Tools ” > “ Git ” > “ Local Repository ” > “ Fixup Previous Commit ”. Essa operação usa o rebase interativo. Em caso de conflitos, uma ferramenta de mesclagem é sugerida.
Para modificar a mensagem do commit final, selecione “ Edit commit message ”. Quando o rebase for executado, aparecerá um editor para editar a mensagem do commit.
Veja também Como fazer: Usar o Git e Usando o Git.
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.