qw3rtman/git-fire
qw3rtman/git-fire has 4,538 GitHub stars and 137 forks. GitHot measured 0 stars in 24 hours and +1 in 7 days. Last checked 2026-11-08 12:53 UTC. Last push 2022-03-02.
:fire: 在紧急情况下保存你的代码
实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文git-fire :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 firegit config --global alias.going fire
What It Does
- changes directory to root directory of the repository
- creates new branch
fire-<current branch>-<user email>-<seconds since epoch> - adds all files
- commits with
"Fire! Branch <new branch>"or custom message - pushes commits to remote
- pushes all stashes to remote
Usage
git-fire <message>
<message> is optional. If not specified, "Fire! Branch fire-<current branch>-<user email>-<seconds since epoch>" will be used.
Installation
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.
Disclaimer
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.
Credit
Originally seen on Hackathon Hackers Facebook group.
Image source | Printable Image | Artist: Ákos Szokodi
