Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maximousblk/gh-fire

🔥 Save Your Code in an Emergency
https://github.com/maximousblk/gh-fire

gh-extension git

Last synced: 9 days ago
JSON representation

🔥 Save Your Code in an Emergency

Awesome Lists containing this project

README

        

# :fire: `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`](https://github.com/qw3rtman/git-fire) clone.

## What It Does

- changes directory to root directory of the repository
- creates new branch `fire--`
- adds all files
- commits with `"Fire! "` or custom message
- pushes commits to remote
- pushes all stashes to remote

## Usage

`gh fire `

`` is optional. If not specified, `"Fire! fire--"` will be used.

## Installation

Make sure you have [`gh`](https://github.com/cli/cli) and [`git`](https://git-scm.com/) installed.

Then run

```sh
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](https://github.com/qw3rtman/git-fire)

## License

This code is licensed under [The MIT License](./LICENSE).