git-fire

:fire: Save Your Code in an Emergency

  • 所有者: qw3rtman/git-fire
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

git-fire :fire:

Inspiration

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

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.

Original Reddit post

Image source, Printable Image, Artist: Ákos Szokodi

主要指標

概覽
名稱與所有者qw3rtman/git-fire
主編程語言Shell
編程語言Shell (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2015-10-04 03:15:37
推送於2022-03-02 04:42:43
最后一次提交2019-08-21 14:50:18
發布數1
最新版本名稱v0.2.3 (發布於 )
第一版名稱v0.2.3 (發布於 )
用户参与
星數4.4k
關注者數33
派生數136
提交數63
已啟用問題?
問題數20
打開的問題數8
拉請求數16
打開的拉請求數6
關閉的拉請求數4
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?