Created
March 4, 2020 13:10
-
-
Save robinpokorny/7fdb5a49a073ae1f5b86feca8018c056 to your computer and use it in GitHub Desktop.
In case of fire
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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