{"id":16787942,"url":"https://github.com/thinkverse/merge-via-cli","last_synced_at":"2026-01-30T14:20:49.833Z","repository":{"id":105003164,"uuid":"291253554","full_name":"thinkverse/merge-via-cli","owner":"thinkverse","description":"Testing merging via CLI","archived":false,"fork":false,"pushed_at":"2020-08-29T11:29:59.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-05T01:55:45.429Z","etag":null,"topics":["git-merge","github-cli","how-to"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":false,"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/thinkverse.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}},"created_at":"2020-08-29T10:57:43.000Z","updated_at":"2020-08-29T16:43:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"a7b3bf57-0ab2-4fd9-945e-2687742613cd","html_url":"https://github.com/thinkverse/merge-via-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thinkverse/merge-via-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkverse%2Fmerge-via-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkverse%2Fmerge-via-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkverse%2Fmerge-via-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkverse%2Fmerge-via-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinkverse","download_url":"https://codeload.github.com/thinkverse/merge-via-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkverse%2Fmerge-via-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28914055,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T12:13:43.263Z","status":"ssl_error","status_checked_at":"2026-01-30T12:13:22.389Z","response_time":66,"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":["git-merge","github-cli","how-to"],"created_at":"2024-10-13T08:16:27.746Z","updated_at":"2026-01-30T14:20:49.810Z","avatar_url":"https://github.com/thinkverse.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🧙‍♂️ Testing merging branched via CLI\n\nI've never tested this before actually... huh, that was easy. 🤘\n\n---\n\n## Using github-cli ([cli/cli])\n\nFirst lets create a new branch to add our LICENSE.\n\n```bash\nmaster \u003e git checkout -B branch-01\n```\n\nAfter we've added our LICENSE, let's create a PR and pre-fill our title and description with our commits.\n\n```bash\nbranch-01 \u003e gh pr create --fill\n```\n\nThen let's merge that PR with `merge`, github-cli will merge to our requested branch `master` and take care of the clean up both locally and remote and delete `branch-01`\n\n```bash\nbranch-01 \u003e gh pr merge\n```\n\nNow locally we have been moved back into our `master` branch.\n\n```bash\nmaster \u003e .\n```\n\n---\n\n## Using regular git\n\nOur steps are exactly the same expect we're using regular git, so let's create our new branch.\n\n```bash\nmaster \u003e git checkout -B branch-02\n```\n\nThen to merge we go to the branch we wanna merge into, in this case `master`\n\n```bash\nbranch-02 \u003e git checkout master\n```\n\nTo merge into our branch we use the `merge` command and add the branch we want to merge into master, in this case `branch-02`\n\n```bash\nmaster \u003e git merge branch-02\n```\n\nNow we can push our changes to remote.\n\n```bash\nmaster \u003e git push origin master\n```\n\nNow we have to do the clean-up on remote and local ourselves, so let's push a delete request to our remote `branch-02` branch, and delete it locally.\n\n```bash\nmaster \u003e git push --delete origin branch-02\nmaster \u003e git branch -D branch-02\n```\n\n[cli/cli]: https://github.com/cli/cli","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkverse%2Fmerge-via-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkverse%2Fmerge-via-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkverse%2Fmerge-via-cli/lists"}