{"id":16833956,"url":"https://github.com/linus789/git-user","last_synced_at":"2025-04-11T04:35:12.010Z","repository":{"id":62439528,"uuid":"362933445","full_name":"Linus789/git-user","owner":"Linus789","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-30T18:20:41.000Z","size":6070,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T04:35:01.423Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://crates.io/crates/git-user","language":"Rust","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/Linus789.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":"2021-04-29T20:02:13.000Z","updated_at":"2023-12-18T19:57:45.000Z","dependencies_parsed_at":"2023-01-22T05:37:37.668Z","dependency_job_id":null,"html_url":"https://github.com/Linus789/git-user","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Linus789%2Fgit-user","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Linus789%2Fgit-user/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Linus789%2Fgit-user/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Linus789%2Fgit-user/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Linus789","download_url":"https://codeload.github.com/Linus789/git-user/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345258,"owners_count":21088231,"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-13T11:55:44.244Z","updated_at":"2025-04-11T04:35:11.981Z","avatar_url":"https://github.com/Linus789.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-user\n\nA simple way to change the user of a git repository.\nUnder the hood it executes:\n```\ngit config user.name \u003cname\u003e\ngit config user.email \u003cemail\u003e\n```\n\n![](demo.gif)\n\n## Installation\nIn order to install, just run the following command\n\n```\ncargo install --force git-user\n```\n\nThis will install git-user in your `~/.cargo/bin` (or Windows: `%USERPROFILE%\\.cargo\\bin`).\n\nMake sure to add the `~/.cargo/bin` (or Windows: `%USERPROFILE%\\.cargo\\bin`) directory to your PATH variable.\n\n## Commands\n### Interactive\n```\n# Apply a profile to set the user for the local git repository\ngit-user\n\n# Apply a profile to set the user for the local git repository\ngit-user apply\n\n# Add a new user profile\ngit-user add\n\n# Change a value in a profile (e. g. the email)\ngit-user set\n\n# Remove a user profile\ngit-user remove\n```\n\n### CLI\n```\n# Apply a profile to set the user for the local git repository\ngit-user apply \u003cprofile\u003e\n\n# Add a new user profile\ngit-user add \u003cprofile\u003e \u003cname\u003e \u003cemail\u003e\n\n# Add a new user profile\n# Email defaults to: \u003cname\u003e@users.noreply.github.com\ngit-user add \u003cprofile\u003e \u003cname\u003e\n\n# Add a new user profile\n# Name defaults to: \u003cprofile\u003e\n# Email defaults to: \u003cprofile\u003e@users.noreply.github.com\ngit-user add \u003cprofile\u003e\n\n# Remove a user profile\ngit-user remove \u003cprofile\u003e\n\n# Rename a profile\ngit-user set profile \u003cprofile-name\u003e \u003cnew-profile-name\u003e\n\n# Change the name of a profile\ngit-user set name \u003cprofile\u003e \u003cname\u003e\n\n# Change the email of a profile\ngit-user set email \u003cprofile\u003e \u003cemail\u003e\n\n# Removes all directories and files ever created by this application\ngit-user reset\n\n# Show the current user of the local git repository\ngit-user current\n\n# List all profiles\ngit-user list\n\n# Print the file path where the profiles are stored and its contents\ngit-user file\n\n# Help menu\ngit-user -h\n```\n\n## Help menu\n```\ngit-user 0.1.2\nLinus789\n\nUSAGE:\n    git-user [SUBCOMMAND]\n\nFLAGS:\n    -h, --help       Prints help information\n    -V, --version    Prints version information\n\nSUBCOMMANDS:\n    add           Add a new user profile\n    apply         Apply a profile to set the user for the local git repository\n    current       Show the current user of the local git repository\n    file          Print the file path where the profiles are stored and its contents\n    help          Prints this message or the help of the given subcommand(s)\n    list          List all profiles\n    remove        Remove a user profile\n    reset         Removes all directories and files ever created by this application\n    set           Set a new value in a profile (e. g. to change the email)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinus789%2Fgit-user","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinus789%2Fgit-user","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinus789%2Fgit-user/lists"}