@themvpguy/mgit
v1.0.0
Published
Multi-client GitHub workflow CLI — manage SSH keys, branches, and commits across all your client repos
Maintainers
Readme
mgit
Multi-client GitHub workflow CLI — manage SSH keys, conventional commits, and daily git ops across all your client repos.
Built by The MVP Guy — Muhammad Tanveer Abbas
Install
Linux
git clone https://github.com/MuhammadTanveerAbbas/mgit.git
cd mgit && chmod +x install.sh && ./install.shWindows (Git Bash)
git clone https://github.com/MuhammadTanveerAbbas/mgit.git
cd mgit && ./install.shWindows (PowerShell)
git clone https://github.com/MuhammadTanveerAbbas/mgit.git
cd mgit
.\install.ps1Via npm
npm install -g @themvpguy/mgitRequirements: Node.js 18+, Git
Commands
| Command | What it does |
|---|---|
| mgit setup [client] | SSH wizard — gen key, update config, test connection |
| mgit connect [client] | Link local project to client GitHub repo |
| mgit test [client] | Test SSH connection for one or all clients |
| mgit list | Show all configured clients |
| mgit status | Rich status — remote, identity, changes |
| mgit sync | Pull latest from remote |
| mgit branch [name] | Create conventional feature branch |
| mgit save [message] | Stage all + conventional commit |
| mgit push | Push current branch |
| mgit config | Set git identity for this repo only |
| mgit daily | Interactive daily workflow (sync→branch→save→push) |
| mgit fix | Fix common git problems interactively |
| mgit checklist | New client project checklist |
| mgit aliases | Add git aliases globally (st, co, last, undo...) |
| mgit remove [client] | Clean offboard — delete keys + SSH config |
| mgit ref | Quick reference for all commands |
Typical Flows
New client onboarding (once):
mgit setup acmecorp
# → generates SSH key
# → shows public key to add to GitHub
# → updates ~/.ssh/config
# → tests the connectionConnect a local project:
cd ~/clients/acmecorp/my-app
mgit connect acmecorp
# → set remote with SSH alias
# → set per-repo git identityDaily work:
mgit sync # pull latest
mgit branch # create feat/fix branch
# ... do work ...
mgit save # conventional commit
mgit push # push branch → open PR on GitHubOr the full loop:
mgit dailySomething broke:
mgit fix
# → interactive menu of common problems + auto-fixesSSH Config Pattern
mgit setup manages this automatically, but here's what it writes:
# Client: acmecorp
Host github-acmecorp
HostName github.com
User git
IdentityFile ~/.ssh/id_ed25519_acmecorpRemote URLs always use the alias, not github.com:
git@github-acmecorp:acmecorp/my-app.gitPlatforms
| Platform | Status | |----------|--------| | Linux | ✓ Full support | | Windows (Git Bash) | ✓ Full support | | Windows (WSL) | ✓ Full support | | macOS | ⏳ Coming soon |
Uninstall
chmod +x uninstall.sh && ./uninstall.shBuilt by The MVP Guy
Muhammad Tanveer Abbas builds production-ready B2B SaaS MVPs in 14–21 days for non-technical founders.
Validation MVP $3,500 — 14 days
Production SaaS $6,000 — 21 days
Full refund if deadline missed.MIT License · © 2026 Muhammad Tanveer Abbas
