zrušit odevzdání
# KEEP CHANGES
git reset --soft HEAD~1
# REMOVE CHANGES
git reset --hard HEAD~1
git smazat místní odevzdání
git reset --hard origin/<branch_name>
git odebrání commitů z větve po push
git reset --hard <last_working_commit_id>
So we must not reset to the commit_id that we don't want.
Then sure, we must push to remote branch:
git push --force
vrátit poslední push na server
git reset --hard HEAD@{1}
git push -f
github undo Poslední tlačil odevzdání
git reset <previous label or sha1>
git commit -am "blabla"
git push -f <remote-name> <branch-name>
zrušit závazek, který není tlačen
git reset --soft HEAD~