Skip to content

Instantly share code, notes, and snippets.

@mauricioromagnollo
Last active June 29, 2021 22:09
Show Gist options
  • Save mauricioromagnollo/fb2b007e197d3350d1c7682946c5c3e9 to your computer and use it in GitHub Desktop.
Save mauricioromagnollo/fb2b007e197d3350d1c7682946c5c3e9 to your computer and use it in GitHub Desktop.
Guia de consulta para comandos do git.

Git Sheet

Corrigir a mensagem do último commit

git commit --amend -m "Nova Mensagem"

Desfazer o último commit para corrigir

git reset --soft HEAD-1

Descartar o último commit

git reset -HEAD-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment