“Reset Commit Git” 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

Reset Git para cometer

# reset to specefic commit
git reset --hard <commit id>

# to go back one step 
git reset --hard HEAD~1

# note: use --soft to keep file changes
Fahim Foysal

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

Como faço para obter o último compromisso

$ git reset --soft HEAD~1
Brainy Butterfly

Reset Commit Git

reset commit
Agreeable Addax

Respostas semelhantes a “Reset Commit Git”

Perguntas semelhantes a “Reset Commit Git”

Mais respostas relacionadas para “Reset Commit Git” em Shell/Bash

Procure respostas de código populares por idioma

Procurar outros idiomas de código