Git緊急事件助手插件:git-fire
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.
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!