GithubHelp home page GithubHelp logo

boogermann / git-fire Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qw3rtman/git-fire

0.0 1.0 0.0 23 KB

:fire: Save Your Code in an Emergency

Home Page: http://imgur.com/3POtveC

License: MIT License

Shell 100.00%

git-fire's Introduction

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>-<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

git-fire's People

Contributors

qw3rtman avatar jgkamat avatar gnithin avatar tiborsaas avatar xender avatar alexdenvir avatar bricewge avatar rayne avatar pault-pg avatar fedjmike avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.