{"id":39230508,"url":"https://github.com/ibrahimraimi/git-recover","last_synced_at":"2026-01-17T23:40:40.700Z","repository":{"id":325736387,"uuid":"1102217357","full_name":"ibrahimraimi/git-recover","owner":"ibrahimraimi","description":"A tool that helps you recover accidentally deleted git branches","archived":false,"fork":false,"pushed_at":"2025-11-23T03:43:58.000Z","size":2560,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-23T05:17:48.669Z","etag":null,"topics":["cli","git","git-recovery","go"],"latest_commit_sha":null,"homepage":"","language":"Go","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/ibrahimraimi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-23T03:13:34.000Z","updated_at":"2025-11-23T03:44:39.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ibrahimraimi/git-recover","commit_stats":null,"previous_names":["ibrahimraimi/git-recover"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ibrahimraimi/git-recover","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibrahimraimi%2Fgit-recover","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibrahimraimi%2Fgit-recover/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibrahimraimi%2Fgit-recover/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibrahimraimi%2Fgit-recover/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ibrahimraimi","download_url":"https://codeload.github.com/ibrahimraimi/git-recover/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibrahimraimi%2Fgit-recover/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28522311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T22:11:28.393Z","status":"ssl_error","status_checked_at":"2026-01-17T22:11:27.841Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["cli","git","git-recovery","go"],"created_at":"2026-01-17T23:40:40.158Z","updated_at":"2026-01-17T23:40:40.695Z","avatar_url":"https://github.com/ibrahimraimi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Recover\n\nGit Recover is a simple CLI tool written in Go that helps you recover accidentally deleted git branches. It scans for dangling commits and reflog entries to find lost work, presents them in an interactive TUI, and allows you to restore them to a new branch.\u003e\n\n\u003e Click to open video demo\n\u003e [![Git Recover Demo](https://i.pinimg.com/1200x/a2/e2/9f/a2e29fc13256aecd5f4b700fc53c3e7b.jpg)](https://res.cloudinary.com/dajnn3jbw/video/upload/v1763867184/git-recover-demo-II_ucznxo.mp4)\n\n## Installation\n\n```bash\ngo install github.com/ibrahimraimi/git-recover@latest\n```\n\nOr build from source:\n\n```bash\ngit clone https://github.com/ibrahimraimi/git-recover.git\ncd git-recover\ngo build -o git-recover\n```\n\n## Features\n\n- **Recover Lost Commits**: Finds dangling commits and reflog entries.\n- **Interactive TUI**: Browse commits with a user-friendly interface.\n- **Commit Preview**: View commit details and diffs in a split-pane view before recovering.\n- **Cross-Platform**: Works on Linux, macOS, and Windows.\n\n## Usage\n\nNavigate to your git repository and run the tool:\n\n```bash\ngit-recover\n```\n\n### Controls\n\n- **Up / k**: Move cursor up\n- **Down / j**: Move cursor down\n- **Enter**: Select commit to recover\n- **Esc**: Cancel selection / Quit\n- **q / Ctrl+c**: Quit\n\nWhen you select a commit, you will be prompted to enter a name for the new branch. Press **Enter** to confirm and create the branch.\n\n## How it works\n\nThe tool uses `git fsck --lost-found` to find dangling commits and `git reflog` to find recent HEAD movements. It aggregates these commits and displays them in a list. When you choose to recover a commit, it simply runs `git branch \u003cnew-branch-name\u003e \u003ccommit-hash\u003e`.\n\n## Contributing\n\nContributions are welcome! Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to submit pull requests and report issues.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibrahimraimi%2Fgit-recover","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibrahimraimi%2Fgit-recover","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibrahimraimi%2Fgit-recover/lists"}