Save all uncommitted work to a remote branch with a single command when you need to leave quickly
Push stashed changes alongside your current edits so nothing is lost when switching machines
Set up a short git alias so you can trigger the emergency save with minimal typing
Git-fire is a small command-line plugin inspired by the programmer joke: "In case of fire: git commit, git push, leave building." It automates all of that in a single command so you can save your current work as quickly as possible before stepping away. When you run git fire, it navigates to the root of your repository, creates a new branch with a name that includes your email address and a timestamp, adds every file in the repository, commits them, and pushes everything to the remote server. It also pushes any stashed changes (temporary saves you may have set aside). The new branch name is unique so it will not conflict with any existing branches. Installation is straightforward: you copy the script file into a directory that is already on your system's PATH and make it executable. Alternatively, you can install it through npm, the JavaScript package manager, with a single install command. Once installed, Git recognizes it as a plugin automatically. The README also suggests setting up an alias so you can type git out or git going instead, purely for comedic effect. The tool accepts an optional custom commit message. If you do not provide one, it generates a message from the branch name. The README includes a gentle disclaimer: your life is more important than any code, and in a real emergency you should leave immediately. The tool is there for the lighthearted version of that scenario, or for any moment when you want to quickly push everything without thinking through the usual git workflow.
← qw3rtman on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.