Git cheat sheet

This is a post-in-progress.

To revert local commit:


git reset HEAD~1

To see what is about to be pushed:


git diff --stat --cached origin/master

Useful commands:


git status
git log

Leave a Reply

Your email address will not be published. Required fields are marked *