Git cheat sheet

by

in

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

To add to ignored files:

git update-index --assume-unchanged

Useful commands:

git status
git log


Comments

Leave a Reply

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