{"id":13496179,"url":"https://github.com/qw3rtman/git-fire","last_synced_at":"2025-05-14T10:10:51.133Z","repository":{"id":1633691,"uuid":"43623432","full_name":"qw3rtman/git-fire","owner":"qw3rtman","description":":fire: Save Your Code in an Emergency","archived":false,"fork":false,"pushed_at":"2022-03-02T04:42:43.000Z","size":27,"stargazers_count":4373,"open_issues_count":14,"forks_count":132,"subscribers_count":35,"default_branch":"master","last_synced_at":"2025-04-08T20:06:30.460Z","etag":null,"topics":["emergency","git"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qw3rtman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-04T03:15:37.000Z","updated_at":"2025-04-08T03:28:16.000Z","dependencies_parsed_at":"2022-08-06T11:00:19.037Z","dependency_job_id":null,"html_url":"https://github.com/qw3rtman/git-fire","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qw3rtman%2Fgit-fire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qw3rtman%2Fgit-fire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qw3rtman%2Fgit-fire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qw3rtman%2Fgit-fire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qw3rtman","download_url":"https://codeload.github.com/qw3rtman/git-fire/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248339237,"owners_count":21087213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["emergency","git"],"created_at":"2024-07-31T19:01:43.440Z","updated_at":"2025-04-11T03:40:31.094Z","avatar_url":"https://github.com/qw3rtman.png","language":"Shell","funding_links":[],"categories":["Shell","git","*.sh"],"sub_categories":["React"],"readme":"# `git-fire` :fire:\n\n### ![Inspiration](https://i.imgur.com/3POtveC.jpg)\n\n`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).\n\n**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.**\n\n- `git config --global alias.out fire`\n- `git config --global alias.going fire`\n\n## What It Does\n\n- changes directory to root directory of the repository\n- creates new branch `fire-\u003ccurrent branch\u003e-\u003cuser email\u003e-\u003cseconds since epoch\u003e`\n- adds all files\n- commits with `\"Fire! Branch \u003cnew branch\u003e\"` or custom message\n- pushes commits to remote\n- pushes all stashes to remote\n\n## Usage\n\n`git-fire \u003cmessage\u003e`\n\n`\u003cmessage\u003e` is optional. If not specified, `\"Fire! Branch fire-\u003ccurrent branch\u003e-\u003cuser email\u003e-\u003cseconds since epoch\u003e\"` will be used.\n\n## Installation\n\nJust copy `git-fire` to your `$PATH` and ensure it is an executable (`chmod +x git-fire`) and you're good to go. 👍\n\n`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`.\n\nAlso make sure you have Git installed.\n\n## Disclaimer\n\nYour life is always more valuable than any code. You should leave the building immediately in a true emergency.\n\nCode can be re-written, but humans cannot.\n\n## Credit\n\nOriginally seen on [Hackathon Hackers Facebook](https://www.facebook.com/groups/hackathonhackers) group.\n\n[Original Reddit post](https://www.reddit.com/r/ProgrammerHumor/comments/3nc531/in_case_of_fire/)\n\n[Image source](https://instagram.com/p/8N8J8wRgPq/) | [Printable Image](http://imgur.com/IiAdxbB) | Artist: [Ákos Szokodi](https://github.com/szokodiakos)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqw3rtman%2Fgit-fire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqw3rtman%2Fgit-fire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqw3rtman%2Fgit-fire/lists"}