git-fire 一个让你在着火的时候可以把你当前所有文件都提交到一个新分支的 Git 插件。

4,284 阅读1分钟
原文链接: github.com

Inspiration

git-fire is a Git plugin that helps in the event of an emergency by adding all current files, committing, and pushing 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

  • creates new branch fire---
  • adds all files
  • commits with "Fire! Branch " or custom message
  • pushes to remote

Usage

git-fire

is optional. If not specified, "Fire! Branch fire---" 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 installable 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.

Credit

Originally seen on Hackathon Hackers Facebook group.

Original Reddit post

Image source | Artist: Ákos Szokodi