Skip to content

Instantly share code, notes, and snippets.

@rakyll
Created March 30, 2018 20:55
Show Gist options
  • Save rakyll/452e2e748a2a990ed5b8838861eafc12 to your computer and use it in GitHub Desktop.
Save rakyll/452e2e748a2a990ed5b8838861eafc12 to your computer and use it in GitHub Desktop.
s = status --short --branch --ignore-submodules=untracked
find = log --pretty=\"format:%Cgreen%H\n%s\n\n%b\" --name-status --grep
amend = commit --amend --no-edit
undo = reset HEAD~
upload = "!git push rakyll $(git rev-parse --abbrev-ref HEAD)"
prune = "!git co master && git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d"
delete = branch -D
pr = "!git fetch origin pull/$1/head:pr$1"
sync = "!git pull -q -r origin master"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment