Skip to content

Instantly share code, notes, and snippets.

@robinpokorny
Created March 4, 2020 13:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robinpokorny/7fdb5a49a073ae1f5b86feca8018c056 to your computer and use it in GitHub Desktop.
Save robinpokorny/7fdb5a49a073ae1f5b86feca8018c056 to your computer and use it in GitHub Desktop.
In case of fire
function fire() {
local BRANCH=emergency-`date +%s`-`git config user.email`
git checkout -b $BRANCH
git add -A
git commit -m 'EMERGENCY!'
git push -f origin $BRANCH
}
# Inspired by https://www.reddit.com/r/ProgrammerHumor/comments/3nc531/in_case_of_fire/cvn1k27/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment