{"id":22111664,"url":"https://github.com/phx/gitswitch","last_synced_at":"2025-07-10T17:33:14.016Z","repository":{"id":121578536,"uuid":"469792746","full_name":"phx/gitswitch","owner":"phx","description":"Easily alternate between multiple git identities and SSH keys","archived":false,"fork":false,"pushed_at":"2022-04-14T14:28:57.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T04:41:11.671Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phx.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":"2022-03-14T15:27:17.000Z","updated_at":"2024-01-29T09:54:22.000Z","dependencies_parsed_at":"2024-08-10T23:31:37.601Z","dependency_job_id":null,"html_url":"https://github.com/phx/gitswitch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phx/gitswitch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phx%2Fgitswitch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phx%2Fgitswitch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phx%2Fgitswitch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phx%2Fgitswitch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phx","download_url":"https://codeload.github.com/phx/gitswitch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phx%2Fgitswitch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264619580,"owners_count":23638475,"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":"2024-12-01T10:50:15.572Z","updated_at":"2025-07-10T17:33:09.007Z","avatar_url":"https://github.com/phx.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gitswitch\n\n## This repository is no longer maintained.\n\n`gitswitch` now uses a configuration file and has been merged into [phxutils](https://github.com/phx/phxutils).\n\nThe new location is [https://github.com/phx/phxutils/tree/master/gitswitch](https://github.com/phx/phxutils/tree/master/gitswitch).\n\n## Old information:\n\nDependencies:\n\n- `/bin/sh`\n- `git`\n\nEasy method for managing multiple `git` identities without changing your normal git paths/commands/configs/etc.\n\nEdit the script as necessary to include your preferred ssh keys, names, and emails.\n\nYou can further edit the script to include swapping by profile name, but I will simply switch between 2 identities.\n\n**NOTE:** This script uses `git config --global user.name` and `git config --global user.email`.  If you prefer, feel free to alter the script to not use the `--global` flag.\n\n## Requirements:\n\nIncluded in `~/.ssh/config`:\n\n```\n# BEGIN GIT\nHost github.com\n  HostName github.com\n  User git\n  IdentityFile /path/to/rsa_private_key\n# END GIT\n```\n\n(or whatever git server you are using - just make sure the comments are there.)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphx%2Fgitswitch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphx%2Fgitswitch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphx%2Fgitswitch/lists"}