{"id":29101706,"url":"https://github.com/open-sl/gsp","last_synced_at":"2025-10-16T06:12:24.485Z","repository":{"id":250831521,"uuid":"834519649","full_name":"Open-SL/gsp","owner":"Open-SL","description":"Stacked pull requests feature powered by Golang","archived":false,"fork":false,"pushed_at":"2024-08-06T04:41:31.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-06T14:38:53.678Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Open-SL.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":"2024-07-27T14:13:27.000Z","updated_at":"2024-08-06T04:41:34.000Z","dependencies_parsed_at":"2024-08-04T14:49:51.078Z","dependency_job_id":null,"html_url":"https://github.com/Open-SL/gsp","commit_stats":null,"previous_names":["open-sl/gsp"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Open-SL/gsp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Open-SL%2Fgsp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Open-SL%2Fgsp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Open-SL%2Fgsp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Open-SL%2Fgsp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Open-SL","download_url":"https://codeload.github.com/Open-SL/gsp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Open-SL%2Fgsp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262497268,"owners_count":23320298,"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-06-28T21:07:59.737Z","updated_at":"2025-10-16T06:12:19.442Z","avatar_url":"https://github.com/Open-SL.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GSP (GIT stacked PR) CLI\n\nThis is a highly-opinionated CLI tool to sync git stacked branches/PRs to your remote repository.\n\n## Install\n\n### Using homebrew\n\n```\nbrew tap Open-SL/tap\nbrew install Open-SL/tap/gsp\n```\n\n## Commands\n\n### Create a stack\n\nA stack is collection of branches for a given repository. It will hold all the branch names and orders.\nUse `-p` or `--primaryBranch` to mention the primary branch name of the repository. Default value is `master`.\n```\ngsp cs [stack-name] [-p primary-branch-name]\n```\n\nexample,\n```\ngsp cs demo -d main\n```\n\n### Add a Branch to a stack\n\nAdds a branch into a stack.\nYou can specify the priority of the branch using the -o or --order option. For example, \na branch with an order of n+1 is a chained branch to a branch with an order of n.\n```\ngsp ab [stack-name] [branch-name] [-o order-of-the-branch]\n```\n\nexample,\n```\ngsp ab demo feature/demo-branch-1\ngsp ab demo feature/demo-branch-2\n```\n\n### Sync branches in to the remote\n\nSyncs branches with remote.\n```\ngsp ss [stack-name] [optional-branch-name-to-initiate]\n```\n\nexample,\n```\n# Syncs branches starting from main. Note that optional branch name to initiate is not mentioned.\n# This will\n# pull main branch into the feature/demo-branch-1\n# push feature/demo-branch-1 into the remote\n# checkout and update feature/demo-branch-2 from feature/demo-branch-1\n# push updated changes to feature/demo-branch-2's remote\ngsp ss demo\n```\n\nFurthermore, gsp provided initializing a sync from desired branch.\nif a stack contains 3 branches and only the 2nd branch was updated,\nfollowing commands will start the sync starting from the second branch.\n\n```\n# Adds the third branch\ngsp ab demo feature/demo-branch-3\n\n# Starts sync from the second branch\ngsp ss demo feature/demo-branch-2\n```\n\n### List stacks\n\nLists stack names.\n```\ngsp ls\n```\n\n### Delete stack\n\nDeletes a named stack from the gsp stack list.\n\nexample,\n```\ngsp ds demo\n```\n\nin addition to that, users can directly update/check the data store at `~/.gsp/data.json` at anytime.\n\n### Development\n\ngsp uses [asdf](https://asdf-vm.com/) to manage `golang` version.\n\nUse\n```\nasdf install\n```\nto install the required golang version.\n\nUse\n```\ngo build \u0026 go install\n```\nto tryout the CLI in local.\n\n## Future Developments\n\n- List branches in a selected stack - gsp lb stack-name\n- Remove a branch from a selected stack - gsp rb -s stack-name branch-name\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-sl%2Fgsp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopen-sl%2Fgsp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-sl%2Fgsp/lists"}