{"id":25835804,"url":"https://github.com/withshubh/gguser","last_synced_at":"2025-08-01T13:12:43.521Z","repository":{"id":279940024,"uuid":"939980581","full_name":"withshubh/gguser","owner":"withshubh","description":"gguser is a CLI tool to easily switch between different Git user profiles.","archived":false,"fork":false,"pushed_at":"2025-03-02T15:09:05.000Z","size":22,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-18T15:56:52.212Z","etag":null,"topics":["cli","git","github","utility"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/withshubh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["withshubh"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":"camelcaseguy","thanks_dev":null,"custom":null}},"created_at":"2025-02-27T12:25:55.000Z","updated_at":"2025-03-21T10:59:38.000Z","dependencies_parsed_at":"2025-02-28T16:58:06.662Z","dependency_job_id":"339306cf-5484-4d5c-943e-30be0d9cc5d8","html_url":"https://github.com/withshubh/gguser","commit_stats":null,"previous_names":["withshubh/gguser"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/withshubh/gguser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withshubh%2Fgguser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withshubh%2Fgguser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withshubh%2Fgguser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withshubh%2Fgguser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/withshubh","download_url":"https://codeload.github.com/withshubh/gguser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withshubh%2Fgguser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268229844,"owners_count":24217016,"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-08-01T02:00:08.611Z","response_time":67,"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":["cli","git","github","utility"],"created_at":"2025-03-01T01:34:37.059Z","updated_at":"2025-08-01T13:12:43.488Z","avatar_url":"https://github.com/withshubh.png","language":"JavaScript","funding_links":["https://github.com/sponsors/withshubh","https://buymeacoffee.com/camelcaseguy"],"categories":[],"sub_categories":[],"readme":"# gguser\n\n**gguser** is a CLI tool to easily switch between different Git user profiles. It simplifies managing multiple GitHub or GitLab accounts by allowing users to switch between profiles effortlessly.\n\n## 🚀 Installation\n\nInstall `gguser` globally using npm:\n\n```sh\nnpm install -g gguser\n```\n\n## 🎯 Usage\n\n### Commands Overview\n\n| Command                                                       | Description                                       |\n| ------------------------------------------------------------- | ------------------------------------------------- |\n| `gguser add \u003cprofile_name\u003e \"\u003cfull_name\u003e\" \"\u003cemail\u003e\" [ssh_key]` | Adds a new Git profile with an optional SSH key   |\n| `gguser select`                                               | Opens an interactive menu to switch profiles      |\n| `gguser \u003cprofile_name\u003e`                                       | Switches directly to a specified Git profile      |\n| `gguser now`                                                  | Displays the currently configured Git user        |\n| `gguser list`                                                 | Lists all available Git profiles                  |\n| `gguser remove \u003cprofile_name\u003e`                                | Removes a specified Git profile                   |\n| `gguser link \u003cprofile_name\u003e`                                  | Links a Git profile to a specific directory       |\n| `gguser unlink`                                               | Removes a profile link from the current directory |\n\n### 1️⃣ **Add a new Git profile**\n\n```sh\ngguser add \u003cprofile_name\u003e \"\u003cfull_name\u003e\" \"\u003cemail\u003e\" [ssh_key]\n```\n\nNote: ssh_key is optional\n\nExample:\n\n```sh\ngguser add work \"Shubhendra Chauhan\" \"work@company\" ~/.ssh/id_ed25520\ngguser add personal \"Shubhendra Singh Chauhan\" \"personalemail@gmail.com\" ~/.ssh/id_ed25520\n```\n\n### 2️⃣ **Switch to a Git profile**\n\n```sh\ngguser select\n```\n\nOr switch directly:\n\n```sh\ngguser \u003cprofile_name\u003e\n```\n\n### 3️⃣ **Show the current Git user**\n\n```sh\ngguser now\n```\n\n### 4️⃣ **List all profiles**\n\n```sh\ngguser list\n```\n\n### 5️⃣ **Remove a profile**\n\n```sh\ngguser remove \u003cprofile_name\u003e\n```\n\n### 6️⃣ **Link a profile to a directory**\n\n```sh\ngguser link \u003cprofile_name\u003e\n```\n\nThis ensures that whenever you're inside that directory, the correct Git user is applied.\n\n### 7️⃣ **Unlink a directory**\n\n```sh\ngguser unlink\n```\n\n## 📝 License\n\nThis project is licensed under the **Apache License 2.0** - see the [LICENSE](LICENSE) file for details.\n\n## 🎯 Contributing\n\nWe welcome contributions from the community! Follow these steps to contribute:\n\n1. **Fork the repository** on GitHub.\n2. **Create a feature branch** (`git checkout -b feature-new`)\n3. **Commit your changes** (`git commit -m \"Added a new feature\"`)\n4. **Push to GitHub** (`git push origin feature-new`)\n5. **Create a Pull Request** 🚀\n\n## 📬 Support\n\nIf you find an issue or want a new feature, create an issue [here](https://github.com/withshubh/gguser/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwithshubh%2Fgguser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwithshubh%2Fgguser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwithshubh%2Fgguser/lists"}