https://github.com/martijnvdp/git-user
Cli for switching between github accounts
https://github.com/martijnvdp/git-user
cli git golang
Last synced: 5 months ago
JSON representation
Cli for switching between github accounts
- Host: GitHub
- URL: https://github.com/martijnvdp/git-user
- Owner: martijnvdp
- License: apache-2.0
- Created: 2021-01-29T18:27:47.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-09-02T18:00:27.000Z (almost 5 years ago)
- Last Synced: 2024-06-20T15:57:10.331Z (about 2 years ago)
- Topics: cli, git, golang
- Language: Go
- Homepage: https://github.com/martijnvdp/git-user
- Size: 55.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-user
git switch user tool
testing & learning cli
switches git user , using git config
and copies the specified key file to id_rsa file in the .ssh profile
## Usage ##
```
git-user a cli util to switch between git user profiles
For example:
add users:
git-user add
list users:
git-user -l
switch user:
git-user -u username
git-user --user username
show current git config:
git-user status
Usage:
git-user [flags]
git-user [command]
Available Commands:
add add users to the git-user config
help Help about any command
list List users
status Show current git config
Flags:
--config string config file (default is $HOME/.git-user.yaml)
-h, --help help for git-user
-l, --list list users from the config file.
-t, --toggle Help message for toggle
-u, --user string user profile
Use "git-user [command] --help" for more information about a command.
```
## refs ##
```
https://github.com/spf13/cobra
https://github.com/spf13/viper
```