mgu - Manage git local users.
$ go install github.com/blue-goheimochi/mgu/cmd/mgu@latest
For development version:
$ git clone https://github.com/blue-goheimochi/mgu.git
$ cd mgu
$ go build -o mgu ./cmd/mgu
-
Create setting file
$ mgu init ~/.config/mgu/setting.json has been created -
Confirm Current User
$ mgu blue-goheimochi <[email protected]> -
Add User You can add users interactively.
$ mgu add ? user.name blue-goheimochi ? user.email [email protected] blue-goheimochi <[email protected]> is added. -
Confirm user list
$ mgu list blue-goheimochi <[email protected]> pink-goheimochi <[email protected]> -
Remove user
$ mgu remove ? Please select a user blue-goheimochi <[email protected]> > pink-goheimochi <[email protected]> ? Do you want to remove? [y/N] y pink-goheimochi <[email protected]> is removed. -
Set User
$ mgu set ? Please select a user: (current: blue-goheimochi <[email protected]>) > blue-goheimochi <[email protected]> pink-goheimochi <[email protected]> blue-goheimochi <[email protected]> has been set as a Git' local user.
$ go test ./...
cmd/mgu: Main executable and CLI definitionpkg/config: Configuration managementpkg/git: Git repository operations
MIT
blue-goheimochi