{"id":44040785,"url":"https://github.com/0xdsaini/rgc","last_synced_at":"2026-02-07T20:38:34.117Z","repository":{"id":247942611,"uuid":"827298168","full_name":"0xdsaini/rgc","owner":"0xdsaini","description":"rgc: risky-git-command. Even ran a git command only to end up with a messy git repository. Not anymore, rgc allows you to undo git commands.","archived":false,"fork":false,"pushed_at":"2024-07-14T17:42:09.000Z","size":6,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-07-15T07:46:30.970Z","etag":null,"topics":["bash","git","github","linux","script","shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xdsaini.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"authors.txt","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-11T11:29:43.000Z","updated_at":"2024-07-14T17:42:12.000Z","dependencies_parsed_at":"2024-07-11T13:08:12.612Z","dependency_job_id":"4b7c9aba-f5ae-4c00-b8c6-72b1132eb04e","html_url":"https://github.com/0xdsaini/rgc","commit_stats":null,"previous_names":["0xdsaini/rgc"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/0xdsaini/rgc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xdsaini%2Frgc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xdsaini%2Frgc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xdsaini%2Frgc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xdsaini%2Frgc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xdsaini","download_url":"https://codeload.github.com/0xdsaini/rgc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xdsaini%2Frgc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29208164,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T20:33:12.493Z","status":"ssl_error","status_checked_at":"2026-02-07T20:30:47.381Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bash","git","github","linux","script","shell"],"created_at":"2026-02-07T20:38:33.469Z","updated_at":"2026-02-07T20:38:34.113Z","avatar_url":"https://github.com/0xdsaini.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Overview\nThe idea is simple. It uses `hg` (mercurial) under the hood to version control git's internal files.\n\n## Requirements:\n`apt-get install mercurial`\n\n## Installation:\n`dpkg -i build/rgc.deb`\n\n## Usage\n`$ rgc do`\n\n`$ \u003cSome risky git command\u003e`\n\nMessed it?\n\n`$ rgc undo`\n\n## FAQ\n**1. Why can't we use copy-paste to just backup?**\n\n**Ans.** Copy-paste can be a bit too much, it forces you to decide and keep track of folders manually, a mental overload. There is a reason why internet is still filled with users with post-messed repo help posts. `rgc` can be a pleasure.\n\n**2. Why not use copy-paste internally?**\n\n**Ans.** We planned to implement `rgc redo` so copy-paste won't cut it. Also, `rgc undo 2`, `rgc undo 3`... But we don't want to make it complicated so `rgc undo \u003cn\u003e` is highly unlikely to happen.\n\n**3. Why not use git under the hood too instead of hg?**\n\n**Ans.** Originally, the idea was to initialize a `.git` repo in parent directory but then git(in parent-dir) was considering inside .git repo as submodule and left no way to track internal files of inner `.git` repo. Have been using `hg` since then. Can change to `git` in newer versions once it is found git can work with another git repo inside, the way we want. For now, `hg` is fitting the bill very well.\n\n## Caution/Bug:\nChanges never added to git, and untracked/ignored files are still at risk of deletion. This is a fatal bug. Please check issue: https://github.com/0xdsaini/rgc/issues/1 and proceed with caution.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xdsaini%2Frgc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xdsaini%2Frgc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xdsaini%2Frgc/lists"}