{"id":15640299,"url":"https://github.com/net/gitu","last_synced_at":"2025-09-04T19:47:14.164Z","repository":{"id":31687233,"uuid":"35252820","full_name":"net/gitu","owner":"net","description":"A lightweight manager for multiple git accounts. Written in Ruby.","archived":false,"fork":false,"pushed_at":"2015-09-15T05:29:56.000Z","size":236,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-20T15:57:46.949Z","etag":null,"topics":["command-line-tool","git","git-configuration"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/net.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}},"created_at":"2015-05-08T01:48:13.000Z","updated_at":"2025-06-28T03:40:29.000Z","dependencies_parsed_at":"2022-09-06T18:01:31.319Z","dependency_job_id":null,"html_url":"https://github.com/net/gitu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/net/gitu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/net%2Fgitu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/net%2Fgitu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/net%2Fgitu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/net%2Fgitu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/net","download_url":"https://codeload.github.com/net/gitu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/net%2Fgitu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273666008,"owners_count":25146273,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["command-line-tool","git","git-configuration"],"created_at":"2024-10-03T11:33:49.879Z","updated_at":"2025-09-04T19:47:14.109Z","avatar_url":"https://github.com/net.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Getting Started\n\nGitu is a tiny script for managing multiple git names/emails. It moves `git config --global user.name NAME` and `git config --global user.email EMAIL` to a quick, easy command. Profiles (sets of names and emails) are stored in a yaml file at ~/.git_users.yml.\n\n### Prerequisites\n- *nix operating system (Mac OS X or Linux)\n- Ruby 2.0.0 or greater\n\n### Installing\n`./gitu` should be placed in `/usr/local/bin/` so it can be executed with `gitu`. Use curl or wget for easiest installation. `~/.git_users.yml` is automatically generated if it doesn't exist the first time any gitu command is run.\n\n#### via curl\n\n`curl -o /usr/local/bin/gitu https://raw.githubusercontent.com/net/gitu/master/gitu \u0026\u0026 chmod a+x /usr/local/bin/gitu`\n\n#### via wget\n\n`wget -P /usr/local/bin https://raw.githubusercontent.com/net/gitu/master/gitu \u0026\u0026 chmod a+x /usr/local/bin/gitu`\n\n## Usage\n\n### Profiles\n\nProfiles are named sets of names and emails. Example:\n\n```yaml\ngithub:\n  name: net\n  email: myemail@me.com\nbitbucket:\n  name: net\n  email: atlassian@example.com\n```\n\n### Commands\n\n#### Set Profile\n\n`gitu [profile]` sets the git global name and email. For example `gitu github` would set the global name and email to the name/email defined under github in `~/.git_users.yml`\n\n#### Current Profile\n\n`gitu` shows the current profile.\n\n#### Set Repository Profile\n\n`gitu -s [profile]` sets the profile for the *current repository*. This adds the name/email to `.git/config` so it stays in effect even after you leave the repository.\n\n#### Add Profile\n\n`gitu + [profile name] [name] [email]` adds a profile. Profiles can also be added directly in `~/.git_users.yml`.\n\n#### Remove Profile\n\n`gitu - [profile name]` removes a profile. Profiles can also be removed directly in `~/.git_users.yml`.\n\n#### Version\n\n`gitu -v` returns the current version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnet%2Fgitu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnet%2Fgitu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnet%2Fgitu/lists"}