{"id":15961492,"url":"https://github.com/niklasrosenstein/git-profile","last_synced_at":"2026-02-25T17:35:33.344Z","repository":{"id":83667175,"uuid":"394093603","full_name":"NiklasRosenstein/git-profile","owner":"NiklasRosenstein","description":"Easily switch between multiple Git configuration profiles on an individual repository basis.","archived":false,"fork":false,"pushed_at":"2025-11-27T23:06:14.000Z","size":93,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-11-30T01:51:30.374Z","etag":null,"topics":["app","cli","git","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/NiklasRosenstein.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-08-08T23:56:02.000Z","updated_at":"2025-11-27T23:06:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2b4b2f9-9c86-4c10-8659-be8efaf23f57","html_url":"https://github.com/NiklasRosenstein/git-profile","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/NiklasRosenstein/git-profile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NiklasRosenstein%2Fgit-profile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NiklasRosenstein%2Fgit-profile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NiklasRosenstein%2Fgit-profile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NiklasRosenstein%2Fgit-profile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NiklasRosenstein","download_url":"https://codeload.github.com/NiklasRosenstein/git-profile/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NiklasRosenstein%2Fgit-profile/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29832966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T17:17:09.781Z","status":"ssl_error","status_checked_at":"2026-02-25T17:16:50.421Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["app","cli","git","python"],"created_at":"2024-10-07T15:42:34.048Z","updated_at":"2026-02-25T17:35:33.325Z","avatar_url":"https://github.com/NiklasRosenstein.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-profile\n\nThis command-line tool allows you to define a set of configuration profiles that can be applied on\na per-repository basis. The main use case is to swap the user details and signing key, but it's\nnot limited to just that.\n\n## Installation\n\nWe recommend installing the tool with Pipx.\n\n    $ pipx install git-profile\n\n## Configuration\n\nIn `~/.gitconfig`, prefixing section names with `\u003cProfile\u003e.` assigns them to the specified profile.\nGit-profile can use that information to determine which profiles there are and what configuration\nis associated with it.\n\nExample:\n\n```ini\n[Work.user]\n  email = \"me@work.com\"\n  signingkey = DEADBEEFDEADBEEF\n```\n\n## Usage\n\nRun `git profile` to list available profiles. The current profile will be marked with a star. Note\nthat the `default` profile is always present and represents your normal Git configuration without\nprofile overrides.\n\n    $ git profile\n    * default\n      Work\n\nWith `git profile \u003cProfile\u003e` you can switch to the specified profile.\n\n    $ git profile Work\n    Switched to profile \"Work\".\n\nThe changes will be applied to `.git/config` of the current repository.\n\nYou can add the `--diff` option to print a diff of the applied config changes.\n\n## FAQ\n\n### How do I avoid accidentally forgetting to switch my profile after checking out a repository?\n\nYou can leave the `[user]` section of your default configuration empty. That way Git will prompt\nyou to configure it when trying to commit. Simply run `git profile \u003cProfile\u003e` after that and\ncommit again.\n\n## Vendored Libraries\n\n* [`gitconfigparser.py`](https://github.com/looking-for-a-job/gitconfigparser.py)\n  by looking-for-a-job @ GitHub\n\n---\n\n\u003cp align=\"center\"\u003eCopyright \u0026copy; 2012 Niklas Rosenstein\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniklasrosenstein%2Fgit-profile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniklasrosenstein%2Fgit-profile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniklasrosenstein%2Fgit-profile/lists"}