Revoke

Recover to an existing 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

History

git log

git log --oneline master

List all branches

git branch -a

Fetch a file from a branch

Display files:

git show your_branch:path/to/file

Fetch the file:

git checkout my-awesome-source-branch -- the/path/to/yourfile