{"id":26708428,"url":"https://github.com/jamieweavis/gitsu","last_synced_at":"2025-04-13T16:22:28.313Z","repository":{"id":282606669,"uuid":"495467326","full_name":"jamieweavis/gitsu","owner":"jamieweavis","description":"🥷 Command line util for quickly \u0026 easily switching git identities","archived":false,"fork":false,"pushed_at":"2025-04-05T15:40:11.000Z","size":936,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T15:46:50.652Z","etag":null,"topics":["git","gitconfig","gitsu","su","switch","switch-user","switcher","user"],"latest_commit_sha":null,"homepage":"https://npm.im/gitsu-cli","language":"TypeScript","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/jamieweavis.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-05-23T15:25:27.000Z","updated_at":"2025-04-05T15:40:13.000Z","dependencies_parsed_at":"2025-03-15T19:33:46.020Z","dependency_job_id":null,"html_url":"https://github.com/jamieweavis/gitsu","commit_stats":null,"previous_names":["jamieweavis/gitsu"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamieweavis%2Fgitsu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamieweavis%2Fgitsu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamieweavis%2Fgitsu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamieweavis%2Fgitsu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamieweavis","download_url":"https://codeload.github.com/jamieweavis/gitsu/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248741851,"owners_count":21154389,"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":["git","gitconfig","gitsu","su","switch","switch-user","switcher","user"],"created_at":"2025-03-27T07:18:20.050Z","updated_at":"2025-04-13T16:22:28.308Z","avatar_url":"https://github.com/jamieweavis.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gitsu\n\n\u003e 🥷 Command line util for quickly \u0026 easily switching git identities\n\n[![ci](https://github.com/jamieweavis/gitsu/actions/workflows/ci.yml/badge.svg)](https://github.com/jamieweavis/gitsu/actions)\n[![downloads](https://img.shields.io/npm/dt/gitsu-cli.svg)](https://npmjs.com/package/gitsu-cli)\n[![version](https://img.shields.io/npm/v/gitsu-cli.svg)](https://github.com/jamieweavis/gitsu/releases)\n[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/jamieweavis/gitsu/blob/main/LICENSE)\n\n\u003cimg width=678 alt=\"Screenshot\" src=\"./.github/screenshot.png\"\u003e\n\n## Install\n\n```sh\nnpm install gitsu-cli -g\n```\n\n## Usage\n\nOpen the `gitsu` switcher to select a user from your `~/.gitsurc` config\n```sh\ngitsu\n```\n\nList users stored in your `~/.gitsurc` config\n```sh\ngitsu --list\ngitsu -l\n```\n\nOpen your `~/.gitsurc` config for editing in your default editor\n```sh\ngitsu --edit\ngitsu -e\n```\n\n## Building\n\nCompiling a production build\n```sh\nnpm run build\n```\n\nRunning in development mode\n```sh\nnpm run dev\n```\n\nRunning a production build\n```sh\nnpm start\n```\n\n## Linking\n\nLink the local package to your global npm modules\n```sh\nnpm link\n```\n\nUnlink the local package from your global npm modules\n```sh\nnpm unlink gitsu-cli -g\n```\n\n## Config\n\nWhen you run `gitsu` for the first time, a `.gitsurc` file is created in your home directory. This file is used to store your git identities.\n\n```json\n[\n  { \"name\": \"John\", \"email\": \"john.doe@gmail.com\" },\n  { \"name\": \"John Doe\", \"email\": \"john.doe@corporate.com\" },\n  { \"name\": \"Johnny\", \"email\": \"johnny@startup.io\" }\n]\n\n```\n\n## Built With\n\n- [Node.js](https://github.com/nodejs/node)\n- [TypeScript](https://github.com/microsoft/TypeScript)\n- [Commander.js](https://github.com/tj/commander.js)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamieweavis%2Fgitsu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamieweavis%2Fgitsu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamieweavis%2Fgitsu/lists"}