{"id":16797106,"url":"https://github.com/jdockerty/gitlias","last_synced_at":"2025-10-28T08:15:15.446Z","repository":{"id":38001170,"uuid":"474398375","full_name":"jdockerty/gitlias","owner":"jdockerty","description":"Swap between Git aliases to commit as the correct author.","archived":false,"fork":false,"pushed_at":"2022-07-09T18:17:56.000Z","size":51,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T03:44:37.829Z","etag":null,"topics":["cli","developer-tools","devops","devtools","git","git-commit","golang"],"latest_commit_sha":null,"homepage":"","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/jdockerty.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}},"created_at":"2022-03-26T16:08:37.000Z","updated_at":"2022-08-29T14:03:10.000Z","dependencies_parsed_at":"2022-07-12T00:17:41.536Z","dependency_job_id":null,"html_url":"https://github.com/jdockerty/gitlias","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jdockerty/gitlias","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdockerty%2Fgitlias","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdockerty%2Fgitlias/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdockerty%2Fgitlias/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdockerty%2Fgitlias/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdockerty","download_url":"https://codeload.github.com/jdockerty/gitlias/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdockerty%2Fgitlias/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265397923,"owners_count":23758458,"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","developer-tools","devops","devtools","git","git-commit","golang"],"created_at":"2024-10-13T09:21:10.382Z","updated_at":"2025-10-28T08:15:15.357Z","avatar_url":"https://github.com/jdockerty.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gitlias\n\n![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/jdockerty/gitlias?style=plastic)\n![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/jdockerty/gitlias?style=plastic)\n\nSwap between `git` aliases so that you can `git commit` as the right author.\n\nSet a number of aliases in a `gitlias.toml` file. For example, you might switch between a `work` and `personal` alias when committing to your own projects on a lunch break. This saves you the hassle of using\n\n  `git config --set [--global]`\n\nor other such lines and provides a more familiar name to refer to them by.\n\n## Install\n\nThe simplest way to install is by using Go\n\n    go install github.com/jdockerty/gitlias@v0.2.2\n\nAlternatively, you can use the provided [releases](https://github.com/jdockerty/gitlias/releases) to download a tarball or zip file.\n\n## Usage\n\nYou can see the full usage and supported flags by running `gitlias --help`. Below is a short example of how the program should be utilised.\n\nUsing `gitlias init` you can generate a skeleton configuration file which is written to `${HOME}/gitlias.toml`.\n\nYou can add various aliases using `gitlias add --alias \u003calias\u003e --user \u003cuser\u003e --email \u003cemail_address\u003e`, this will populate your configuration file.\n\n\nOnce you have added some aliases, your file may look like this.\n\n```toml\n# ${HOME}/gitlias.toml\n[alias]\n\n  [alias.work]\n  user = \"John S\"\n  email = \"john@example.com\"\n\n  [alias.personal]\n  user = \"John Smith\"\n  email = \"j.smith@example.com\"\n```\n\nSwitching between them so that your commit messages have the corresponding author\n\n```bash\ngitlias switch work\ngitlias switch personal # current active alias\n```\n\nNow your commit messages will have the user `John Smith` and email `j.smith@gmail.com` assigned to them.\n\n**Note: this currently writes to the global git config.**\n\n\nYou can view all configured aliases using `gitlias list` and the current one with `gitlias list --current`.\n\nIf you no longer wish to use an alias, you can remove is using `gitlias rm \u003calias_name\u003e`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdockerty%2Fgitlias","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdockerty%2Fgitlias","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdockerty%2Fgitlias/lists"}