Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am greenimpala on github.
  • I am greenimpala (https://keybase.io/greenimpala) on keybase.
  • I have a public key ASAo2WPNqj42PitKKabPXLq0bLnY1xsq-LbWDng5toXpOQo

To claim this, I am signing this object:

# Quick function that adds all unstaged / untracked files to the working tree.
# Applies a commit message by joining all the shell arguments and then pushes it to origin.
#
# Usage: `commit My first commit`
commit() {
git add -A
git commit -am "$*"
# Do not override users push settings
$ git branch -r --merged |
awk -F'/' '/^ *origin/{if(!match($0, /(>|integration)/)){print $2}}' |
xargs git push origin --delete