{"id":17641363,"url":"https://github.com/dotzero/git-profile","last_synced_at":"2025-04-30T13:53:31.752Z","repository":{"id":25987365,"uuid":"100094487","full_name":"dotzero/git-profile","owner":"dotzero","description":"↔️ Git Profile allows you to switch between multiple user profiles in git repositories","archived":false,"fork":false,"pushed_at":"2023-06-05T11:35:50.000Z","size":255,"stargazers_count":69,"open_issues_count":5,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T16:46:34.521Z","etag":null,"topics":["cli","git","git-profiles","go","golang","profile","switch"],"latest_commit_sha":null,"homepage":"https://github.com/dotzero/git-profile","language":"Go","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/dotzero.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-08-12T06:39:40.000Z","updated_at":"2024-12-16T13:09:49.000Z","dependencies_parsed_at":"2024-06-19T00:17:37.397Z","dependency_job_id":null,"html_url":"https://github.com/dotzero/git-profile","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotzero%2Fgit-profile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotzero%2Fgit-profile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotzero%2Fgit-profile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotzero%2Fgit-profile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotzero","download_url":"https://codeload.github.com/dotzero/git-profile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251715131,"owners_count":21631844,"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":["cli","git","git-profiles","go","golang","profile","switch"],"created_at":"2024-10-23T07:05:23.333Z","updated_at":"2025-04-30T13:53:31.654Z","avatar_url":"https://github.com/dotzero.png","language":"Go","readme":"# Git Profile switcher\n\n[![build](https://github.com/dotzero/git-profile/actions/workflows/ci.yml/badge.svg)](https://github.com/dotzero/git-profile/actions/workflows/ci.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/dotzero/git-profile)](https://goreportcard.com/report/github.com/dotzero/git-profile)\n[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/dotzero/git-profile/blob/master/LICENSE)\n\nGit Profile allows you to switch between multiple user profiles in git repositories\n\n## Installation\n\nIf you are MacOS user, you can use [Homebrew](http://brew.sh/):\n\n```bash\nbrew install dotzero/tap/git-profile\n```\n\n### Prebuilt binaries\n\nDownload the binary from the [releases](https://github.com/dotzero/git-profile/releases) page and place it under `$PATH` directory.\n\n### Building from source\n\nIf your operating system does not have a binary release, but does run Go, you can build it from the source.\n\n```bash\ngo get -u github.com/dotzero/git-profile\n```\n\nThe binary will then be installed to `$GOPATH/bin` (or your `$GOBIN`).\n\n## Usage\n\nAdds an entry to a profile or updates an existing profile\n\n```bash\ngit profile add home user.name dotzero\ngit profile add home user.email \"me@dotzero.ru\"\ngit profile add home user.signingkey AAAAAAAA\n```\n\nDisplays a list of available profiles\n\n```bash\ngit profile list\n```\n\nApplies the selected profile entries to the current git repository\n\n```bash\ngit profile use home\n\n# Under the hood it runs following commands:\n# git config --local user.name dotzero\n# git config --local user.email \"me@dotzero.ru\"\n# git config --local user.signingkey AAAAAAAA\n```\n\nExport a profile in JSON format\n\n```bash\ngit profile export home \u003e home.json\n```\n\nImport profile from JSON format\n\n```bash\ncat home.json | xargs -0 git profile import home\n```\n\n## License\n\nhttp://www.opensource.org/licenses/mit-license.php\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotzero%2Fgit-profile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotzero%2Fgit-profile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotzero%2Fgit-profile/lists"}