“git cancelar o último compromisso” Respostas de código

GIT UNLO COMMIT

# Uncommit the changes
git reset --soft HEAD~1

# Completely delete the changes
git reset --hard HEAD~1
garzj

git cancelar o último compromisso

git reset --soft HEAD~1
Lucky Lapwing

desfazer o último compromisso

#this  will preserve changes done to your files
git reset --soft HEAD~1

#this will get rid of the commit and the changes done to the files
$ git reset --hard HEAD~1
 
Old-fashioned Oyster

Git desfazer a última confirmação

# Undo last commit.
# --soft flag makes sure that the changes in undone revisions are preserved.
# You'll find the changes as uncommitted local modifications in your working copy.
git reset --soft HEAD~1

# If you don't want to keep these changes, simply use the --hard flag.
# This will completely remove the changes.
git reset --hard HEAD~1
Yingfufu

Git desfazer a última confirmação

$ git reset --soft HEAD~1
Brainy Butterfly

Remova o último commit Git

git reset --hard HEAD^
git push origin -f
Cruel Cod

Respostas semelhantes a “git cancelar o último compromisso”

Perguntas semelhantes a “git cancelar o último compromisso”

Mais respostas relacionadas para “git cancelar o último compromisso” em Shell/Bash

Procure respostas de código populares por idioma

Procurar outros idiomas de código