Skip to content

Instantly share code, notes, and snippets.

@ridingintraffic
Created December 23, 2018 03:50
Show Gist options
  • Save ridingintraffic/fef78d1517d9bceec33e15d86374c3b6 to your computer and use it in GitHub Desktop.
Save ridingintraffic/fef78d1517d9bceec33e15d86374c3b6 to your computer and use it in GitHub Desktop.
in case of fire
function FIRE()
{
find ~/git/github/$(whoami) -maxdepth 1 -mindepth 1 -type d -exec cd {} \; -exec git pull {} \; -exec git add --all {} \; -exec git commit -a -m "firesale" {} \; -exec git push origin `git rev-parse --abbrev-ref HEAD` {} \;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment