Skip to content

🔥 Save Your Code in an Emergency

License

Notifications You must be signed in to change notification settings

maximousblk/gh-fire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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

About

🔥 Save Your Code in an Emergency

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages