git undo Poslední odevzdání
$ git reset --soft HEAD~1
zrušit místní odevzdání
$ git reset --soft HEAD~1
git undo tlačil odevzdání
git reset <previous label or sha1>
git commit -am "commit message"
git push -f <remote-name> <branch-name> // git push -f origin master
zrušit poslední odevzdání
$ git commit -m "some comment"
$ git reset HEAD~
<< edit files as necessary >>
$ git add ...
$ git commit -c ORIG_HEAD
git jak zrušit posunutý závazek
git revert <commit_hash>
git undo Poslední odevzdání
git reset --soft HEAD~1