{"id":45712599,"url":"https://github.com/lepepe/git-cp","last_synced_at":"2026-03-13T04:02:57.740Z","repository":{"id":340269805,"uuid":"1165280617","full_name":"lepepe/git-cp","owner":"lepepe","description":"A C# CLI tool that makes git cherry-pick simple and visual.","archived":false,"fork":false,"pushed_at":"2026-03-06T03:29:30.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-06T08:16:03.266Z","etag":null,"topics":["cherry-pick","cli","cli-app","csharp","git"],"latest_commit_sha":null,"homepage":"","language":"C#","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/lepepe.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":"2026-02-24T02:17:20.000Z","updated_at":"2026-03-06T03:29:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lepepe/git-cp","commit_stats":null,"previous_names":["lepepe/cp","lepepe/git-cp"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lepepe/git-cp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepepe%2Fgit-cp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepepe%2Fgit-cp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepepe%2Fgit-cp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepepe%2Fgit-cp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lepepe","download_url":"https://codeload.github.com/lepepe/git-cp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lepepe%2Fgit-cp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30457984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T03:55:51.346Z","status":"ssl_error","status_checked_at":"2026-03-13T03:55:33.055Z","response_time":60,"last_error":"SSL_read: 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":["cherry-pick","cli","cli-app","csharp","git"],"created_at":"2026-02-25T03:02:32.386Z","updated_at":"2026-03-13T04:02:57.734Z","avatar_url":"https://github.com/lepepe.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-cp — Interactive Git Cherry-Pick Helper\n\nA C# CLI tool that makes `git cherry-pick` simple and visual. Browse commits,\nselect one or many with a checkbox list, choose a target branch, and handle\nconflicts — all without leaving your terminal.\n\nBuilt with [Spectre.Console](https://spectreconsole.net/) on .NET 10.\n\n---\n\n## Features\n\n- **Branch picker** — select any local or remote branch as the source\n- **Commit table** — view the last 60 commits with hash, date, author, and message\n- **Multi-select** — toggle commits with `Space`, confirm with `Enter`\n- **Target branch** — type a new branch name (creates it) or an existing one (checks it out)\n- **Conflict handling**\n  - Lists every conflicted file\n  - Shows a colour-coded diff per file (`+` green, `-` red, `@@` blue)\n  - Lets you fix conflicts in your editor, then stage \u0026 continue\n  - Or skip the commit, or abort the entire session\n- **Summary** — applied / skipped count at the end\n\n---\n\n## Installation\n\n\u003e No .NET SDK needed on the target machine — the binaries are self-contained.\n\n**Linux**\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/lepepe/git-cp/main/install.sh | bash\n```\n\n**Windows** (PowerShell)\n\n```powershell\nirm https://raw.githubusercontent.com/lepepe/git-cp/main/install.ps1 | iex\n```\n\nBoth scripts download the latest release binary from GitHub, place it in a\nuser-local directory, and add that directory to your `PATH` automatically.\n\nAfter installation, restart your terminal and run `git cp` from inside any git repository.\n\n---\n\n## Prerequisites (for building from source)\n\n| Requirement | Version  |\n|-------------|----------|\n| .NET SDK    | 10.0+    |\n| git         | any      |\n\n---\n\n## Build \u0026 Run\n\n```bash\n# Clone or enter the project directory\ncd git-cp\n\n# Run directly (development)\ndotnet run\n\n# Build a Release binary\ndotnet build -c Release\n./bin/Release/net10.0/git-cp\n```\n\n### Single-file executables\n\n**Linux (x64)**\n\n```bash\n# Build and install to ~/.local/bin in one step\nmake install\n```\n\nOr manually:\n\n```bash\ndotnet publish -c Release -r linux-x64 --self-contained true \\\n  -p:PublishSingleFile=true -o bin/publish/linux\n\ncp bin/publish/linux/git-cp ~/.local/bin/git-cp\n```\n\n**Windows (x64)**\n\n```powershell\ndotnet publish -c Release -r win-x64 --self-contained true `\n  -p:PublishSingleFile=true -o bin/publish/win\n\n# Optionally put it on your PATH (run as Administrator)\ncopy bin\\publish\\win\\git-cp.exe \"C:\\Windows\\System32\\git-cp.exe\"\n```\n\n\u003e Run `git-cp` or `git cp` from inside any git repository.\n\n---\n\n## Usage\n\n```\n$ git-cp\n# or\n$ git cp\n```\n\nThe tool walks you through each step interactively:\n\n```\nStep 1  Pick the source branch to cherry-pick from\nStep 2  A table shows the last 60 commits on that branch\nStep 3  Select one or more commits (Space toggles, Enter confirms)\nStep 4  Enter the name of the target/promotion branch\nStep 5  The branch is created or checked out automatically\nStep 6  Each commit is cherry-picked in chronological order\n        On conflict → view diffs, fix, continue / skip / abort\nStep 7  A summary shows how many commits were applied or skipped\n```\n\n### Conflict resolution options\n\n| Choice | What happens |\n|--------|-------------|\n| I fixed it manually — stage \u0026 continue | Runs `git add -A \u0026\u0026 git cherry-pick --continue` |\n| Skip this commit | Runs `git cherry-pick --skip` |\n| Abort all remaining cherry-picks | Runs `git cherry-pick --abort` and exits |\n\n---\n\n## Releasing a new version\n\nPush a semver tag — the Actions workflow builds both binaries and publishes a\nGitHub Release automatically.\n\n```bash\ngit tag v1.0.0\ngit push origin v1.0.0\n```\n\nThe release will contain:\n\n- `git-cp-linux-x64` — self-contained Linux binary\n- `git-cp-win-x64.exe` — self-contained Windows binary\n\n---\n\n## Project Structure\n\n```\ngit-cp/\n├── .github/\n│   └── workflows/\n│       └── release.yml    # CI: build \u0026 publish binaries on tag push\n├── cp.csproj              # Project file (.NET 10, Spectre.Console 0.54)\n├── Makefile               # build + install to ~/.local/bin (Linux)\n├── Program.cs             # App entry point — UI flow and cherry-pick loop\n├── GitService.cs          # Thin wrapper around git CLI commands\n├── install.sh             # One-liner installer for Linux\n├── install.ps1            # One-liner installer for Windows\n└── Models/\n    └── CommitInfo.cs      # Record representing a single commit\n```\n\n---\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flepepe%2Fgit-cp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flepepe%2Fgit-cp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flepepe%2Fgit-cp/lists"}