Last active
October 26, 2020 18:17
-
-
Save viniciusstroher/4f29608495b9d9b218361760b5bf482c to your computer and use it in GitHub Desktop.
editando commit messages de commits que ja foram para o push (remote)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rebase -i HEAD~3 (3 - numeros de commits para traz) | |
trocar de pick para reword para os commits que deseja alterar, fechar | |
apos fechar ele vai abrir o vi com os commits para serem alterados (editar e salvar :wq) | |
git push remote branch --force (reenviar) | |
git rebase --abort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment