Logo Awesome React

Awesome React

Handy package: npm-quick-run

AMA question: https://github.com/kentcdodds/ama/issues/408
npm-quick-run: https://www.npmjs.com/package/npm-quick-run
dotfiles: https://github.com/kentcdodds/dotfiles

Here's part of my ~/.gitconfig file

[alias]
co = checkout
br = branch
ci = commit
st = status
unstage = reset HEAD --
last = log -1 HEAD
m = checkout master
up = "!git remote update -p; git merge --ff-only @{u}"
pr = "!f() { git fetch -fu ${2:-$(git remote |grep ^upstream || echo origin)} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
files = "!f() { git diff --name-status $1^ $1; }; f"
cdiff = "!f() { git diff $1^ $1; }; f"
ca = "!git add -A && git commit -av"
amend = commit -a --amend --no-edit
b = checkout -b
annihilate = "!f() { git branch -D \"$1\"; git push origin --delete \"$1\"; }; f"
ann = annihilate
cp = cherry-pick
cpc = cherry-pick --continue
rh = reset --hard
pr-clean = "!git for-each-ref refs/heads/pr/* --format=\"%(refname)\" | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done"