Show Menu
Cheatography

Common Git Commands Cheat Sheet (DRAFT) by

Commonly Used Git Commands

This is a draft cheat sheet. It is a work in progress and is not finished yet.

View Stash Diff

git stash show -p stash@{2}
View what changes would be made if a particular stash were applied.

Get filenames changed in last commit

git diff --name­-only HEAD^1
HEAD^1 can be replaced with HEAD~# to go back an arbitrary # of commits
 

Git delete remote branch

git push <re­mot­e> --delete <br­anc­h>