{"id":24696877,"url":"https://github.com/franjid/gitswitch","last_synced_at":"2026-04-16T00:32:04.673Z","repository":{"id":153343058,"uuid":"82966473","full_name":"franjid/gitswitch","owner":"franjid","description":"Switch your Git identity between several options (personal, work, etc)","archived":false,"fork":false,"pushed_at":"2017-02-26T15:57:54.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-30T20:40:13.011Z","etag":null,"topics":["git","git-identity","git-switch","gitswitch","identity","switch"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/franjid.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-02-23T20:05:25.000Z","updated_at":"2023-05-31T04:17:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"044c4528-c94b-47ee-b218-8dff0cada001","html_url":"https://github.com/franjid/gitswitch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/franjid/gitswitch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franjid%2Fgitswitch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franjid%2Fgitswitch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franjid%2Fgitswitch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franjid%2Fgitswitch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/franjid","download_url":"https://codeload.github.com/franjid/gitswitch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franjid%2Fgitswitch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31866294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["git","git-identity","git-switch","gitswitch","identity","switch"],"created_at":"2025-01-27T02:06:34.860Z","updated_at":"2026-04-16T00:32:04.665Z","avatar_url":"https://github.com/franjid.png","language":"Shell","readme":"# Git Switch\n\nSwitch your Git identity between several options (personal, work, etc)\n\n## Why?\n\nWhile working in my current company it often happened that in the mornings I was committing like crazy with my corporate email and in the afternoon, before I start working on personal projects, I had to edit my .gitconfig file to comment the company email and uncomment my personal one.\n\nProgrammers are known for their lazyness, and this is just confirming that fact. I got tired of doing that every day, so I programmed an script to do it for myself.\n\n## Set up\n\nEdit .gitswitch file and replace it with the values you wish\n\nCopy .gitswitch to your $HOME folder\n\n```\ncp .gitswitch ~\n```\n\nCopy script to a location where you can run it everywhere\n\n```\ncp gitswitch.sh /usr/local/bin/gitswitch\n```\n\nRun the command and choose one of the identities\n```\ngitswitch\n```\n\nIn case (you don't trust me and) you want to check by yourself that it was correctly changed\n\n```\ngit config user.name\ngit config user.email\n```\n\n**Profit!**\n\n## Extra tip for lazy people (like me)\n\nI added an alias on my system so I even have to type less. Maybe you want to make use of it too :)\n\n```\nalias gsw='gitswitch'\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffranjid%2Fgitswitch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffranjid%2Fgitswitch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffranjid%2Fgitswitch/lists"}