https://github.com/qw3rtman/git-fire
:fire: Save Your Code in an Emergency
https://github.com/qw3rtman/git-fire
emergency git
Last synced: about 1 month ago
JSON representation
:fire: Save Your Code in an Emergency
- Host: GitHub
- URL: https://github.com/qw3rtman/git-fire
- Owner: qw3rtman
- License: mit
- Created: 2015-10-04T03:15:37.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-03-02T04:42:43.000Z (over 3 years ago)
- Last Synced: 2025-04-08T20:06:30.460Z (2 months ago)
- Topics: emergency, git
- Language: Shell
- Homepage:
- Size: 26.4 KB
- Stars: 4,373
- Watchers: 35
- Forks: 132
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starts - qw3rtman/git-fire - :fire: Save Your Code in an Emergency (git)
README
# `git-fire` :fire:
### 
`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`](https://np.reddit.com/r/ProgrammerHumor/comments/3nc531/in_case_of_fire/cvmxnv1) or [`git going`](https://np.reddit.com/r/ProgrammerHumor/comments/3nc531/in_case_of_fire/cvmsajb) 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---`
- adds all files
- commits with `"Fire! Branch "` or custom message
- pushes commits to remote
- pushes all stashes to remote## Usage
`git-fire `
`` is optional. If not specified, `"Fire! Branch fire---"` 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`](https://npmjs.com/git-fire). 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](https://www.facebook.com/groups/hackathonhackers) group.
[Original Reddit post](https://www.reddit.com/r/ProgrammerHumor/comments/3nc531/in_case_of_fire/)
[Image source](https://instagram.com/p/8N8J8wRgPq/) | [Printable Image](http://imgur.com/IiAdxbB) | Artist: [Ákos Szokodi](https://github.com/szokodiakos)