{"id":34114968,"url":"https://github.com/dcchuck/lbranch","last_synced_at":"2026-04-07T07:02:03.325Z","repository":{"id":260381613,"uuid":"877677822","full_name":"dcchuck/lbranch","owner":"dcchuck","description":"A command line utility for checking out recent git branches.","archived":false,"fork":false,"pushed_at":"2025-09-11T12:55:43.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-28T10:06:06.978Z","etag":null,"topics":["git"],"latest_commit_sha":null,"homepage":"","language":"Python","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/dcchuck.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,"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":"2024-10-24T03:51:16.000Z","updated_at":"2025-09-11T12:55:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"9ddce1ef-ce02-4ab7-9d74-f2da7aad85bb","html_url":"https://github.com/dcchuck/lbranch","commit_stats":null,"previous_names":["dcchuck/lrbanch","dcchuck/lbranch"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/dcchuck/lbranch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcchuck%2Flbranch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcchuck%2Flbranch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcchuck%2Flbranch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcchuck%2Flbranch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcchuck","download_url":"https://codeload.github.com/dcchuck/lbranch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcchuck%2Flbranch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31503394,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"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":["git"],"created_at":"2025-12-14T19:48:39.671Z","updated_at":"2026-04-07T07:02:03.320Z","avatar_url":"https://github.com/dcchuck.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lbranch\nlbranch (\"last branch\") is a git utility that shows your recently checked out branches in chronological order, with an optional interactive checkout.\n\n## Usage\n```bash\n# Show last 5 branches (default)\nlbranch\n# Show last N branches\nlbranch -n 3\nlbranch --number 3\n# Show branches and select one to checkout\nlbranch -s\nlbranch --select\n# Show last N branches and select one\nlbranch -n 3 -s\n# Color control\nlbranch --no-color     # Disable colored output\nlbranch --force-color  # Force colored output even in non-TTY environments\n```\n\n## Example Output\n```bash\nLast 5 branches:\n1) feature/new-ui\n2) main\n3) bugfix/login\n4) feature/api\n5) develop\n```\n\n## Color Support\nlbranch automatically detects if your terminal supports colors:\n- Colors are disabled when output is not to a terminal (when piped to a file or another command)\n- Colors are disabled on Windows unless running in a modern terminal (Windows Terminal, VS Code, etc.)\n- You can force colors on with `--force-color` or off with `--no-color`\n- lbranch respects the `NO_COLOR` and `FORCE_COLOR` environment variables\n\n## Exit Codes\nlbranch follows the standard exit codes from sysexits.h for better integration with scripts and other tools:\n\n- 0: Success\n- 64: Command line usage error (not in a git repository, invalid selection)\n- 66: Cannot open input (no branch history/no commits)\n- 69: Service unavailable (git command not found)\n- 75: Temporary failure (branch checkout failed, retry possible)\n- 130: Operation interrupted (Ctrl+C)\n\nThese follow Unix conventions where exit codes 64-78 are standardized error codes, and 128+N indicates termination by signal N.\n\n## Requirements\n- Python 3.7+\n- Git\n\n## Installation\n\n### Using pip\n\nYou can install lbranch directly from [PyPI](https://pypi.org/project/lbranch/):\n\n```bash\npip install lbranch\n```\n\n### Using Homebrew\n\nYou can install lbranch using [Homebrew](https://brew.sh/):\n\n```bash\nbrew tap dcchuck/lbranch\nbrew install lbranch\n```\n\n## License\nDistributed under the MIT License. See `LICENSE`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcchuck%2Flbranch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcchuck%2Flbranch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcchuck%2Flbranch/lists"}