{"id":13409641,"url":"https://github.com/ziishaned/git-profile","last_synced_at":"2025-07-09T13:40:32.888Z","repository":{"id":49350528,"uuid":"68297679","full_name":"ziishaned/git-profile","owner":"ziishaned","description":"Utility that helps you switch git configurations with ease.","archived":false,"fork":false,"pushed_at":"2019-02-19T06:30:45.000Z","size":87,"stargazers_count":233,"open_issues_count":0,"forks_count":10,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-19T23:06:11.399Z","etag":null,"topics":["git","git-profiles","manage","profile"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/ziishaned.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-15T13:45:28.000Z","updated_at":"2025-01-20T09:00:22.000Z","dependencies_parsed_at":"2022-09-19T13:41:36.274Z","dependency_job_id":null,"html_url":"https://github.com/ziishaned/git-profile","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ziishaned/git-profile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziishaned%2Fgit-profile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziishaned%2Fgit-profile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziishaned%2Fgit-profile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziishaned%2Fgit-profile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ziishaned","download_url":"https://codeload.github.com/ziishaned/git-profile/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziishaned%2Fgit-profile/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262569931,"owners_count":23330314,"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":["git","git-profiles","manage","profile"],"created_at":"2024-07-30T20:01:02.503Z","updated_at":"2025-06-29T09:32:58.511Z","avatar_url":"https://github.com/ziishaned.png","language":"PHP","readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch1 align=\"center\"\u003egit-profile\u003c/h1\u003e\n    \u003cp align=\"center\"\u003eUtility that helps you switch git configurations with ease\u003c/p\u003e\n    \u003cp align=\"center\"\u003e\n      \u003ca href=\"https://travis-ci.org/ziishaned/git-profile\"\u003e\n          \u003cimg src=\"https://img.shields.io/travis/ziishaned/git-profile/master.svg?style=flat-square\" alt=\"Build Status\"/\u003e\n      \u003c/a\u003e\n      \u003ca href=\"https://github.com/ziishaned/git-profile/releases\"\u003e\n          \u003cimg src=\"https://img.shields.io/github/release/ziishaned/git-profile.svg?style=flat-square\" alt=\"Latest Version\"/\u003e\n      \u003c/a\u003e\n      \u003ca href=\"https://twitter.com/home?status=git-profile%20by%20%40ziishaned%20http%3A//github.com/ziishaned/git-profile\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/twitter-tweet-blue.svg?style=flat-square\"/\u003e\n      \u003c/a\u003e\n      \u003ca href=\"https://twitter.com/ziishaned\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/feedback-@ziishaned-blue.svg?style=flat-square\" /\u003e\n      \u003c/a\u003e\n        \u003ca href=\"https://github.com/ziishaned/git-profile\"\u003e\n            \u003cimg src=\"https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\" alt=\"Software License\"\u003e\n        \u003c/a\u003e\n    \u003c/p\u003e\n\u003c/div\u003e\n\n## Preface\n\nIt is possible that you have multiple git configurations. For example:\n\n```\n; Office Profile\nName: John Doe\nEmail: johndoe@office.com\n\n; Personal Profile\nName: John Doe\nEmail: johndoe@gmail.com\n```\n\nIt could be a hassle to remember and switch between the profiles while working on different projects.\n\nThis utility aims to make this hassle free.\n\n## Features\n\n- Create and manage profiles globally; create once, use anywhere\n- Set profile for a specific project\n- Set global profile with a single command\n\nThis utility helps you save profiles and then you can switch between them using a single command.\n\n## Install\n\n```\n$ composer global require zeeshan/git-profile\n```\nThen check your ```$PATH``` variable. It must contain ```~/.composer/vendor/bin``` dir.\n\n```\n$ echo $PATH\n\n/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/home/username/.composer/vendor/bin\n```\n\nModify your ```.zshrc``` or ```.bashrc``` files if your ```$PATH``` variable not contain composer/bin dir.\n\n```\nexport PATH=~/.composer/vendor/bin:$PATH\n```\n\n#### Also you can use .phar file\n\n* Download the file from [here](https://github.com/ziishaned/git-profile/releases/download/v1.0/git-profile)\n* `sudo chmod -R 755 git-profile`\n* `sudo mv git-profile /usr/local/bin/git-profile`\n\n## Usage\n\n```\n$ git-profile [options] \u003ccommand\u003e\n```\n*Options*\n```\n-h, --help              Display this help message\n-V, --version           Display this application version\n--ansi                  Force ANSI output\n--no-ansi               Disable ANSI output\n```\n*Commands*\n```\nrm                      Remove git profile\nuse                     Change git profile locally or globally\nadd                     Create a new git profile\nshow                    Show details for an existing profile\nupdate                  Update details for an existing profile\ncurrent                 Gets the currently set profile\nlist                    List of profiles\n```\n\n## Examples\n\nFind some of the sample usages below\n\n### Adding Profiles\n```\n$ git-profile add\n\n[+] Enter profile title: Office\n\n[+] Enter Name: John Doe\n[+] Enter Email: johndoe@office.com\n[+] Enter Signingkey: B7156A83\n\n[OK] Profile \"Office\" saved successfully\n```\n\n### Remove Git Profile\n\n```\n$ git-profile rm \"Office\"\n\n[OK] Profile \"Office\" successfully removed\n```\n\n### Show Details for a profile\n\n```\n$ git-profile show \"Office\"\n\n[+] Name:  John Doe\n[+] Email: johndoe@office.com\n[+] Signingkey: B7156A83\n```\n\n### Updating Profile\n```\n$ git-profile update \"Office\"\n\n[+] Enter Name: Jane Doe\n[+] Enter Email: janedoe@gmail.com\n[+] Enter Signingkey: 547ABB1C\n\n[OK] Profile \"Office\" updated successfully\n```\n\n### Switching Profile\n\n*Setting details locally i.e. set profile for the current project*\n```\n$ git-profile use \"Office\"\n\n[OK] Switched to \"Office\"\n```\n\n*Setting details globally i.e. set global configuration*\n```\n$ git-profile use \"Office\" --global\n\n[OK] Switched to \"Office\"\n```\n\n### Get Current Profile\n\n```\n$ git-profile current\n\n[+] Current Profile \"Office\"\n[+] Name: John Doe\n[+] Email: johndoe@gmail.com\n[+] Signingkey: 547ABB1C\n```\n\n*Side note* It should be noted that profiles are maintained globally. When you `use` some profile locally, what it does is get the configuration for that profile and sets it for the current project. i.e. when `use` is run locally it is equivalent to\n\n```\n$ git config user.name \"Name for specified profile\"\n$ git config user.email \"email-for-specified@profile.com\"\n$ git config user.signingkey \"SIGNINGKEY\"\n```\n\n### Profiles List\n\n```\n$ git-profile list\n\nAvailable profiles:\n    Github\n    Home\n    Office\n```\n\n## License\n\nMIT © Zeeshan Ahmad\n","funding_links":[],"categories":["PHP"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziishaned%2Fgit-profile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fziishaned%2Fgit-profile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziishaned%2Fgit-profile/lists"}