git-fire
git-fire
is a Git plugin that helps in the event of an emergency by switching to the repository's root directory, adding all current files, committing, and pushing commits and all stashes to a new branch (to prevent merge conflicts).
Alias it to git out
or git going
for comedic effect.
git config --global alias.out fire
git config --global alias.going fire
fire-<current branch>-<user email>-<seconds since epoch>
"Fire! Branch <new branch>"
or custom messagegit-fire <message>
<message>
is optional. If not specified, "Fire! Branch fire-<current branch>-<user email>-<seconds since epoch>"
will be used.
Just copy git-fire
to your $PATH
and ensure it is an executable (chmod +x git-fire
) and you're good to go. 👍
git-fire
is also available via npm
. Just run npm install -g git-fire
, which will copy the git-fire
binary to your $PATH
.
Also make sure you have Git installed.
Your life is always more valuable than any code. You should leave the building immediately in a true emergency.
Code can be re-written, but humans cannot.
Originally seen on Hackathon Hackers Facebook group.
Image source | Printable Image | Artist: Ákos Szokodi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型