{"id":21977529,"url":"https://github.com/viqueen/git-workspaces","last_synced_at":"2025-09-16T05:11:52.315Z","repository":{"id":61517833,"uuid":"551273655","full_name":"viqueen/git-workspaces","owner":"viqueen","description":"Collection of git extensions to enhance my local development setup","archived":false,"fork":false,"pushed_at":"2025-08-26T05:12:33.000Z","size":1593,"stargazers_count":2,"open_issues_count":20,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-26T07:10:35.694Z","etag":null,"topics":["developer-tools","git","hacktoberfest","hacktoberfest2022"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/viqueen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2022-10-14T05:31:11.000Z","updated_at":"2025-08-08T04:51:08.000Z","dependencies_parsed_at":"2024-04-22T18:02:36.437Z","dependency_job_id":"c05fa4a1-7bcb-4535-9814-02076acf6cc5","html_url":"https://github.com/viqueen/git-workspaces","commit_stats":null,"previous_names":["viqueen/git-workspace","viqueen/git-workspaces","viqueen/git-devbox"],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/viqueen/git-workspaces","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viqueen%2Fgit-workspaces","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viqueen%2Fgit-workspaces/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viqueen%2Fgit-workspaces/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viqueen%2Fgit-workspaces/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/viqueen","download_url":"https://codeload.github.com/viqueen/git-workspaces/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viqueen%2Fgit-workspaces/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273771317,"owners_count":25165178,"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","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["developer-tools","git","hacktoberfest","hacktoberfest2022"],"created_at":"2024-11-29T16:15:33.599Z","updated_at":"2025-09-16T05:11:52.281Z","avatar_url":"https://github.com/viqueen.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## git-workspaces\n\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=viqueen_git-devbox\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=viqueen_git-devbox)\n[![Known Vulnerabilities](https://snyk.io/test/github/viqueen/git-devbox/badge.svg?targetFile=package.json)](https://snyk.io/test/github/viqueen/git-devbox?targetFile=package.json)\n\n### install it\n\n#### from stable\n\n- with **homebrew** (preferred)\n\n```bash\nbrew tap viqueen/labset\nbrew install git-workspaces\n```\n\n- with **npm** (not recommended)\n\n```bash\nnpm install @labset/git-workspaces -g\n```\n\n#### from source\n\n```bash\ngit clone https://github.com/viqueen/git-workspaces.git\ncd git-workspace\nnpm install\nnpm link\n```\n\n### use it\n\n#### working with branches\n\n- list recent git branches that you've interacted with locally, select one to check it out\n\n```bash\ngit recent\n```\n\n![git recent example](./docs/images/git-recent.png)\n\n- list merged git branches that you still have locally, multi select the ones you want to delete\n\n```bash\ngit merged\ngit merged origin/master\n```\n\n![git merged example](./docs/images/git-merged.png)\n\n- list squashed git branches that you still have locally, multi select the ones you want to delete\n\n```bash\ngit squashed\ngit squashed origin/master\n```\n\n- list recent branches that you've interacted with, multi select the ones you want to delete\n\n```bash\ngit tidy\n```\n\n#### setup git workspaces\n\n- start by some configuration\n\n```bash\ngit workspace-config\n```\n\nit will add the following git global config entries\n\n```text\ngit.workspaces.root                     # where you want all your workspaces to be\ngit.workspaces.default                  # your default workspace, i.e open-source vs work\ngit.workspaces.github.username          # your github username\ngit.workspaces.github.personal.token    # your github personal access token\n```\n\n- add a repo to your workspace\n\n```bash\ngit workspace-add \u003curlConnection\u003e         # adds to default workspace\ngit workspace-add \u003curlConnect\u003e -w \u003cname\u003e  # adds to workspace with provided name\n```\n\n- view your workspace\n\n```bash\ngit workspace             # describes default workspace\ngit workspace -w \u003cname\u003e   # describes workspace with provided name\n```\n\n- clone your entire workspace\n\n```bash\ngit workspace-clone\ngit workspace-clone -w \u003cname\u003e\n```\n\n- sync workspace with GitHub, it requires GitHub username and token to be set when working with private repos\n\n```bash\ngit sync-github                               # logged in user repos\ngit sync-github --user \u003cnamespace\u003e\ngit sync-github --org \u003cnamespace\u003e\ngit sync-github --org \u003cnamespace\u003e --archived  # include archived\ngit sync-github --user \u003cnamespace\u003e --forked   # include forked\n```\n\n- sync workspace with Bitbucket Cloud, it requires Bitbucket username and token to be configured\n\n```bash\ngit sync-bitbucket --namespace \u003cnamespace\u003e\n```\n\n- execute a script across your git workspace\n\n```bash\ngit workspace-exec \u003cscript-file\u003e [args...]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviqueen%2Fgit-workspaces","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviqueen%2Fgit-workspaces","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviqueen%2Fgit-workspaces/lists"}