GitID is a small command-line program that helps you manage Git username and email settings across your local repositories.
It scans your home directory by default, or an optional custom directory, finds Git repositories, shows each repository's local identity, and lets you update identity values quickly.
- Finds all Git repositories under the selected search directory.
- Shows the local
user.nameanduser.emailfor each repository. - Lets you update the username, email, or both values for all repositories at once.
- Lets you update the username, email, or both values for one selected repository.
The search skips common dependency, virtual-environment, cache, and system directories:
node_modules, venv, .venv, env, __pycache__, .Trash, Library, and .cache.
GitID updates only local repository settings using git config --local.
It does not change your global Git config.
- Homebrew installed
- Git installed
Install with Homebrew:
brew install yeminko/tap/gitidTo update GitID installed via Homebrew, run:
brew update && brew upgrade gitidRun GitID:
gitidBy default, GitID searches your home directory. To search a different folder, pass it as a positional argument:
gitid /path/to/folderFor example:
gitid ~/ProjectsThe path can be absolute or relative to your current directory.
To display command-line help:
gitid --helpThen:
- The program searches for Git repositories in the selected path.
- It prints a numbered table of repositories.
- Choose one option:
1to update all repositories2to update one repositoryqto quit
- If updating, choose
Username,Email, orBoth. - Enter the new value or values when prompted.
gitid
Searching for Git repositories in: /Users/alice
Total elapsed time: 0.4s
Found 3 Git repository(ies).
Options:
[1] Update Git username and/or email for ALL repositories
[2] Update Git username and/or email for a SPECIFIC repository
[q] Quit
Enter your choice: 2
Enter repository number (1-3): 1
What would you like to update?
[1] Username
[2] Email
[3] Both
Enter your choice: 3
Enter new username: Alice
Enter new email: alice@example.com
MIT