https://github.com/gs256/git-user
A simple cross-platform cli tool for switching between git profiles.
https://github.com/gs256/git-user
cli git git-config rust
Last synced: 6 months ago
JSON representation
A simple cross-platform cli tool for switching between git profiles.
- Host: GitHub
- URL: https://github.com/gs256/git-user
- Owner: gs256
- Created: 2023-02-24T08:33:45.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-12T21:06:33.000Z (almost 2 years ago)
- Last Synced: 2024-07-13T21:22:47.874Z (almost 2 years ago)
- Topics: cli, git, git-config, rust
- Language: Rust
- Homepage:
- Size: 24.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-user
A simple cross-platform cli tool for switching between git profiles.
## Usage
The tool has a very straightforward terminal interface
```console
$ git-user
┌──────────┐
│ GIT-USER │
└──────────┘
Pick profile for this repo
[1] Emploee 123 (employee123@corp.com) -> work profile
[2] John Doe (johndoe@example.com) -> personal profile
[3] Jane Doe (janedoe@example.com) -> another personal profile
[a] Add a new profile
[q] Quit
-> Option: 2
User John Doe (johndoe@example.com) has been selected for this repo
```
All profiles are stored in `~/.config/git-user.txt` in the following format
```
Emploee 123:employee123@corp.com # work profile
John Doe:johndoe@example.com # personal profile
Jane Doe:janedoe@example.com # another personal profile
```
## License
MIT