Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 1.21 KB

README.md

File metadata and controls

42 lines (25 loc) · 1.21 KB

🔥 gh fire

gh fire is a GitHub CLI extention 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. Yes, it's a git-fire clone.

What It Does

  • changes directory to root directory of the repository
  • creates new branch fire-<current branch>-<seconds since epoch>
  • adds all files
  • commits with "Fire! <new branch name>" or custom message
  • pushes commits to remote
  • pushes all stashes to remote

Usage

gh fire <message>

<message> is optional. If not specified, "Fire! fire-<current branch>-<seconds since epoch>" will be used.

Installation

Make sure you have gh and git installed.

Then run

gh extension install maximousblk/gh-fire

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 created by qw3rtman

License

This code is licensed under The MIT License.