Save Your Code in an Emergency
S

Save Your Code in an Emergency

Save Your Code in an Emergency

4,539 stars
N/A forks
N/A contributors

README

Project documentation from GitHub

Git Fire: Your Emergency Code Evacuation Plan

We've all been there. The fire alarm is blaring, the building is being evacuated, and your last thought is, "Did I commit my changes?" Your laptop stays behind as you head for the exit, leaving hours of uncommitted work in potential peril. While we hope you're never in a real emergency, our development environments often feel like one—sudden crashes, failing hardware, or urgent switches away from a deep work session.

What if you could "save your game" with a single command, securing all your local changes to a remote backup before sprinting out the door? That's the exact scenario git-fire is built for.

What It Does

git-fire is a shell script that acts as an emergency override for your Git workflow. When you run git fire, it does three things, aggressively and without your usual checks: it adds all changes in your working directory, commits them with a default "Fire! COMMIT!" message (or one you provide), and pushes the commit directly to your current branch's remote. It bypasses hooks and ignores any unadded files, focusing solely on getting your current state to safety.

Why It's Cool

The cleverness is in its brutal simplicity and specific intent. It's not meant for your daily driver workflow. It's the break-glass-in-case-of-emergency tool. By sidestepping pre-commit hooks and the interactive add process, it guarantees speed and execution when you need it most. The commit message is intentionally obvious, so later, when things are calm, you can easily find these panic-save points and clean them up.

Think of it as a git commit -am "wip" && git push on steroids, but with a clearer, single-command purpose. Its use cases go beyond physical fires: sudden internet drop-offs where you want a final push, quickly saving state before a risky system update, or even just capturing a messy working state at the end of the day when you're too tired to craft proper commits.

How to Try It

Getting started is straightforward. The project is a simple shell script.

  1. Clone the repository:

    git clone https://github.com/qw3rtman/git-fire.git
    
  2. Install it globally (or add it to your path): The easiest way is to copy the script to a directory in your system's PATH. For example:

    cd git-fire
    sudo cp git-fire /usr/local/bin/
    

    Or, you can just run it directly from the cloned folder with ./git-fire.

  3. Navigate to any Git repository and test it:

    cd

Did you like this issue?

Join our weekly newsletter

Love discovering amazing projects?

Help us continue bringing you the best open-source discoveries every week.

Back to Projects
Last updated: Dec 24, 2025