Git紧急事件助手插件:git-fire
jopen
9年前
git-fire是一个 Git 插件,用于有紧急事件发通过将所有当前的文件,提交,并pushing到一个新的分支上(以避免合并冲突)。
Alias it to git out or git going for comedic effect.
- git config --global alias.out fire
- git config --global alias.going fire
What It Does
- creates new branchfire-<current branch>-<user email>-<current epoch>
- adds all files
- commits with"Fire! Branch <new branch>"or custom message
- pushes to remote
Usage
git-fire <message>
<message>is optional. If not specified,"Fire! Branch fire-<current branch>-<user email>-<current epoch>"will be used.
Installation
Just copygit-fireto your$PATHand ensure it is an executable (chmod +x git-fire) and you're good to go.
git-fireis also installable via NPM. Just runnpm install -g git-fire, which will copy thegit-firebinary to your$PATH.
Also make sure you have Git installed.