Skip to content

Instantly share code, notes, and snippets.



Created Dec 21, 2018
What would you like to do?
caca = commit -a -C HEAD --amend
changelog = "!f() { r=${1:-`git describe --tags --abbrev=0`..HEAD}; echo Changelog for $r; git log --reverse --no-merges --format='* %s' $r; }; f"
changes = diff --name-status
ci = commit
cia = commit --amend
ciaa = commit -a --amend
co = checkout
cp = cherry-pick
dic = diff --cached
diffstat = diff --stat
drop-last-commit = git reset HEAD^ --hard
last = diff HEAD^1
lc = !git oneline ORIG_HEAD.. --stat --no-merges
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
mayday = git reset --hard origin/mybranch
oneline = log --pretty=oneline --abbrev-commit --graph
oops = commit --amend -a -C HEAD
pr = "!f() { git fetch origin refs/pull/$1/head:pr/$1; } ; f"
pr = pull --rebase
puhs = push
recent = ~/bin/git-recent
rush = push --dry-run
serve = !git daemon --reuseaddr --verbose --base-path=. --export-all ./.git
sst = status -sb
st = status
undo = reset --soft HEAD^
unstage = reset HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.