Skip to content

JakeOhara/git-fire

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

git-fire 🔥

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-<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 copy git-fire to your $PATH and ensure it is an executable (chmod +x git-fire) and you're good to go. 👍

Also make sure you have Git installed.

Credit

Originally seen on Hackathon Hackers Facebook group.

Original Reddit post

About

In Case of Fire...

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%