Gitm
A simple cli application to manage multiple git cli accounts.
Motivation
I noticed that there is no built in functionality in git itself, when managing accounts especially, if you have multiple personality (account). Typing git config commands is kind of a hassle repeatedly, that's why i created this simple cli application.
Installation
go install github.com/aybangueco/gitm@latest
Commands
Init
This command is mandatory, especially for fresh installs of Gitm.
gitm init
Account list
Shows list of accounts.
gitm list-accounts
Switch Account
Switch to an existing accounts (replace account id with actual id of account).
gitm switch-account [accountID]
Add Account
Adds new git account.
gitm add-account
Update Account
Update information of existing accounts (replace account id with actual id of account).
gitm update-account [accountID]
Delete Account
Delete existing account (replace account id with actual id of account).
gitm delete-account [accountID]
TODO
- [x] Add account
- [x] Display lists of account in a table
- [x] Update account (pending)
- [x] Switch account
- [x] Delete account
- [ ] Add ssh key specifics on account
Contributing
- Fork this repository
- Clone your forked repository:
- Create a new branch
git checkout -b feature/your-feature-name
- Make your changes and commit
git add .
git commit -m "feat: add your feature description"
- Push your fork
- Create a pull request (pr) to the main repo
- Wait for a review and make any requested change