{"id":19169299,"url":"https://github.com/janejeon/change-git-config","last_synced_at":"2026-04-09T20:03:13.904Z","repository":{"id":35087401,"uuid":"159100309","full_name":"JaneJeon/Change-Git-Config","owner":"JaneJeon","description":"Update your git username/email in existing repositories' history","archived":false,"fork":false,"pushed_at":"2023-01-27T02:17:16.000Z","size":95,"stargazers_count":1,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-06T22:32:00.693Z","etag":null,"topics":["cli","configuration","git","github","gitlab","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/JaneJeon.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":"2018-11-26T02:46:40.000Z","updated_at":"2021-10-15T10:06:41.000Z","dependencies_parsed_at":"2023-02-15T04:15:43.148Z","dependency_job_id":null,"html_url":"https://github.com/JaneJeon/Change-Git-Config","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaneJeon%2FChange-Git-Config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaneJeon%2FChange-Git-Config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaneJeon%2FChange-Git-Config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaneJeon%2FChange-Git-Config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JaneJeon","download_url":"https://codeload.github.com/JaneJeon/Change-Git-Config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240250354,"owners_count":19771778,"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","configuration","git","github","gitlab","nodejs"],"created_at":"2024-11-09T09:46:28.134Z","updated_at":"2026-04-09T20:03:13.852Z","avatar_url":"https://github.com/JaneJeon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Change Git Config\n\n[![npm version](https://badge.fury.io/js/change-git-config.svg)](https://badge.fury.io/js/change-git-config) [![Dependabot Status](https://api.dependabot.com/badges/status?host=github\u0026repo=JaneJeon/Change-Git-Config)](https://dependabot.com)\n\nDid you change your email address? Got a new name? You can change those outdated git configurations across _all_ of\nyour repos at once, _and_ make the remote repositories (e.g. GitHub) reflect those changes!\n\nThis is an upgrade over the [previous PHP-based solution](https://github.com/JaneJeon/Change-Git-Name) in that a. it doesn't mess up your commit history (uses `git stash` instead), b. it pushes across _all_ branches (unlike before, which only pushed `master`), and c. the logging is less cluttered and easier to pinpoint what went wrong where (especially during force pushes).\n\n## Installation\n\nClone this repository.\n\n## Usage\n\n1. Run `yarn start`\n2. Specify a directory. Anything from `~/Projects`, `/Users/home/$project`, to `./blah` flies!\n3. Provide the outdated git information you'd like to update (i.e. your previous git config)\n4. Check that the new git information looks right\n5. (Optional) enable force push\n6. ???\n7. Profit!\n\n## Warning\n\nOnly enable force push with repos that you own or repos where you know the others will be okay with this change!\n\nIf your `git` is set to use a non-English language (e.g. Korean),\n\n```js\ngit(fullPath).checkIsRepo()\n```\n\ncan go apeshit for some reason. In that case, try\n\n```bash\necho 'export LANG=\"en_US\" # for git' \u003e\u003e ~/.bash_profile\n```\n\nAdditionally, the git configurations are case-sensitive, meaning that `hello@example.com` and `Hello@example.com`\nlook the same to `git`.\n\n## Testing\n\nYou can do a simple integration test (unfortunately interactive in some parts, but a lot of it is still automated) as follows:\n\n- `yarn setup`\n  - Provide your GitHub credentials, and modify `scripts/setup.sh` with your GitHub username\n- `yarn start`:\n  - Use the following credentials:\n    - dir: `./sample`\n    - old name: your current git name\n    - old email: your current git email\n    - new name: something _different_ from your current git name\n    - new email: something _different_ from your current git email\n  - Afterwards, you should see the changes reflected on the github repo\n- `yarn teardown`\n  - Provide your GitHub credentials, and modify `scripts/teardown.sh` with your GitHub username\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanejeon%2Fchange-git-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanejeon%2Fchange-git-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanejeon%2Fchange-git-config/lists"}