Skip to content

djangosporti/git-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

git-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>-<current 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>-<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. 👍

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 | Printable Image | Artist: Ákos Szokodi

About

A bunch of random scripts I've either written, downloaded or clipped from #git.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 35.7%
  • Shell 30.2%
  • Ruby 19.9%
  • Perl 7.5%
  • Python 5.0%
  • Emacs Lisp 1.7%