{"id":25381966,"url":"https://github.com/m0a/git-split-branch","last_synced_at":"2025-04-09T12:40:48.478Z","repository":{"id":276578292,"uuid":"929665434","full_name":"m0a/git-split-branch","owner":"m0a","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-11T03:20:29.000Z","size":43,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T06:09:47.354Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/m0a.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":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-09T04:40:13.000Z","updated_at":"2025-02-11T02:50:40.000Z","dependencies_parsed_at":"2025-02-09T07:18:57.137Z","dependency_job_id":"1a12bfa2-3ffa-42d5-9b9e-7d1ed783d8f4","html_url":"https://github.com/m0a/git-split-branch","commit_stats":null,"previous_names":["m0a/git-split-branch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0a%2Fgit-split-branch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0a%2Fgit-split-branch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0a%2Fgit-split-branch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0a%2Fgit-split-branch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m0a","download_url":"https://codeload.github.com/m0a/git-split-branch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248045230,"owners_count":21038552,"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":[],"created_at":"2025-02-15T06:36:21.363Z","updated_at":"2025-04-09T12:40:48.450Z","avatar_url":"https://github.com/m0a.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-split-branch\n\nA Git utility tool to split differences between two branches into multiple branches (Go CLI)\n\n[日本語版は下部に続きます](#git-split-branch-日本語版)\n\n## Overview\nThis tool helps manage large code changes by splitting diffs between a source branch and base branch into multiple smaller branches. Useful for breaking down big PRs/MRs into manageable chunks.\n\n\n## Installation\n```bash\n# Install globally\ngo install github.com/m0a/git-split-branch@latest\n\n# Or clone and build locally\ngit clone https://github.com/m0a/git-split-branch.git\ncd git-split-branch\ngo build -o git-split-branch main.go\n```\n\n## Usage\n```bash\ngit split-branch \\\n  --source feature-branch \\\n  --base main \\\n  --number 10 \\\n  --prefix split\n```\n\n**Options**:\n- `--source/-s`: Source branch name (required)\n- `--base/-b`: Base branch name (default: main)\n- `--number/-n`: Number of files per branch (required)\n- `--prefix/-p`: Branch name prefix (default: split)\n\n\nWhen you run the command, the tool generates a YAML file (`split-config-*.yaml`) that proposes the files to be split and the branch names:\n```yaml\n# This YAML file contains the configuration for splitting branches.\n# Each branch group specifies a branch name and the list of files to be included in that branch.\n\nbranches:\n- name: split_1\n  files:\n  - test/file1.txt\n  - test/file2.txt\n  \n- name: split_2\n  files:\n  - test/file3.txt\n\n```\n\nAfter saving, the specified branches will be created.\n\n\n## License\nMIT\n\n---\n\n# git-split-branch (日本語版)\n\nGitブランチ間の差分を複数のブランチに分割するユーティリティツール(Go CLI製)\n\n## 概要\nこのツールは、ソースブランチとベースブランチ間の差分を検出し、変更ファイルを複数の小さなブランチに分割します。大規模なPR/MRを管理しやすいサイズに分割する際に有用です。\n\n\n## インストール方法\n```bash\n# グローバルインストール\ngo install github.com/m0a/git-split-branch@latest\n\n# またはローカルでビルド\ngit clone https://github.com/m0a/git-split-branch.git\ncd git-split-branch\ngo build -o git-split-branch main.go\n```\n\n## 使い方\n```bash\n  git split-branch \\\n  --source feature-branch \\\n  --base main \\\n  --number 10 \\\n  --prefix split\n```\n\n**オプション**:\n- `--source/-s`: ソースブランチ名(必須)\n- `--base/-b`: ベースブランチ名(デフォルト: main)\n- `--number/-n`: 1ブランチあたりのファイル数(必須)\n- `--prefix/-p`: ブランチ名プレフィックス(デフォルト: split)\n\n\nコマンドを実行すると、ツールはファイルの分割とブランチ名を提案するYAMLファイル(`split-config-*.yaml`)を生成します:\n\n```yaml\n# This YAML file contains the configuration for splitting branches.\n# Each branch group specifies a branch name and the list of files to be included in that branch.\n\nbranches:\n- name: split_1\n  files:\n  - test/file1.txt\n  - test/file2.txt\n  \n- name: split_2\n  files:\n  - test/file3.txt\n\n```\n\n保存後に対象のブランチが実際に作成されます。\n\n\n## ライセンス\nMITtest\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm0a%2Fgit-split-branch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm0a%2Fgit-split-branch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm0a%2Fgit-split-branch/lists"}