{"id":17998106,"url":"https://github.com/cookiengineer/git-identity","last_synced_at":"2025-03-26T04:31:39.157Z","repository":{"id":181698096,"uuid":"667168046","full_name":"cookiengineer/git-identity","owner":"cookiengineer","description":":nesting_dolls: Automated git alias management","archived":false,"fork":false,"pushed_at":"2023-07-18T11:39:12.000Z","size":16,"stargazers_count":20,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T06:41:32.545Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/cookiengineer.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}},"created_at":"2023-07-16T21:31:33.000Z","updated_at":"2024-02-10T02:27:37.000Z","dependencies_parsed_at":"2024-01-07T21:02:28.295Z","dependency_job_id":"62199de8-7e48-417b-91bb-0ac68f245366","html_url":"https://github.com/cookiengineer/git-identity","commit_stats":null,"previous_names":["cookiengineer/git-identity"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookiengineer%2Fgit-identity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookiengineer%2Fgit-identity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookiengineer%2Fgit-identity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookiengineer%2Fgit-identity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cookiengineer","download_url":"https://codeload.github.com/cookiengineer/git-identity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245589265,"owners_count":20640254,"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-10-29T21:24:02.581Z","updated_at":"2025-03-26T04:31:38.823Z","avatar_url":"https://github.com/cookiengineer.png","language":"Go","readme":"# git-identity\n\nThis CLI tool is a complementary `git extension` to allow better\nmanagement and integration of multiple git user profiles.\n\nThe git command line is pain to use, hard to remember, and easy\nto get wrong. That's why this tool exists.\n\n\n## Syntax\n\n| Action             | Description                                         |\n|:-------------------|:----------------------------------------------------|\n| `create \u003calias\u003e`   | creates a new alias                                 |\n| `import \u003calias\u003e`   | imports global git user config as a new alias       |\n| `clone \u003calias\u003e`    | clones a private repository with SSH key of alias   |\n| `config \u003calias\u003e`   | modifies current git repository to always use alias |\n| `show`             | prints out available aliases                        |\n| `show-key \u003calias\u003e` | prints out the public SSH key for given alias       |\n\n\n## Examples\n\n```bash\n# import global git/ssh config as new alias\ngit identity import cookiengineer;\n\n# create an alias\ngit identity create another-alias;\n\n# clone a repo via an aliases' SSH key\ngit identity clone cookiengineer git@github.com:cookiengineer/private-repository.git ./private-repo;\n\n# modify alias usage inside a repo\ncd ./private-repo;\ngit identity config another-alias;\ngit push origin master; # uses another-alias automatically!\n\n# easy copy/paste of public key to web apps\ngit identity show-key another-alias;\n```\n\n\n## Installation\n\n```bash\n# clone the repository\ngit clone https://github.com/cookiengineer/git-identity;\n\n# builds and installs the binary to /usr/bin/git-identity\ncd ./git-identity;\nbash install.sh;\n```\n\n\n## Filesystem Backup / Config Folders\n\n- The compiled [main.go](/main.go) binary has to be installed as `/usr/bin/git-identity`\n- `$XDG_CONFIG_HOME/git-identity` is the preferred config folder\n- `$HOME/.config/git-identity` is the first fallback config folder\n- `/home/$USER/.config/git-identity` is the second fallback config folder\n\n\n## License\n\nWTFPL\n\n","funding_links":[],"categories":["\u003ca name=\"git\"\u003e\u003c/a\u003eGit and accessories"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcookiengineer%2Fgit-identity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcookiengineer%2Fgit-identity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcookiengineer%2Fgit-identity/lists"}