“git revertir un commit” Código de respuesta

Deshacer cometer

# KEEP CHANGES
git reset --soft HEAD~1

# REMOVE CHANGES
git reset --hard HEAD~1
Lively Leopard

git revert commit

# Reset the index and working tree to the desired tree
# Ensure you have no uncommitted changes that you want to keep
git reset --hard 56e05fced

# Move the branch pointer back to the previous HEAD
git reset --soft HEAD@{1}

git commit -m "Reverting to the state of the project at f414f31"
Disturbed Duck

Revertir Commit git

git revert <commit hash>
Common Mynah

git revertir todos los compromisos a cometer permeables

git revert --no-commit <commithash>..HEAD #revert changes in range of commits from head to back to that commit hash
Kirk-Patrick Brown

git revertir un commit

git revert --no-commit 0766c053..HEAD
git commit
Creepy Copperhead

git revertir un commit

git reset 'HEAD@{1}'
Wojak's distant cousin

Respuestas similares a “git revertir un commit”

Preguntas similares a “git revertir un commit”

Más respuestas relacionadas con “git revertir un commit” en Shell/Bash

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código