“Git Excluir comprometimento local” Respostas de código

Git Excluir comprometimento local

git reset --hard origin/<branch_name>
Lazy Loris

excluir commit

git checkout master
git reset --hard e3f1e37
git push --force origin master
# Then to prove it (it won't print any diff)
git diff master..origin/master
Bole

Git descarte todas

# Remove ALL commits up to commit hash.
# NB: Make sure these commits have not been pushed.

git reset --hard <commit hash number>
SmokeFrog

reverter compromissos não publicados

git reset --hard <hash-or-ref>
Drab Duck

Respostas semelhantes a “Git Excluir comprometimento local”

Perguntas semelhantes a “Git Excluir comprometimento local”

Mais respostas relacionadas para “Git Excluir comprometimento local” em Shell/Bash

Procure respostas de código populares por idioma

Procurar outros idiomas de código