About Git Mob
Git Mob is an MCP server in the Security category: cLI tool to help you automatically add Co-authored-by trailers to git commits during pair/mob programming.
Install
git clone https://github.com/Mubashwer/git-mobThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Ask AI
Ask AI about Git Mob
Powered by Claude · Grounded in docs
Security checks
- ✓README presentThe repository ships documentation.
5 checks have not been run yet.
README
git mob
CLI tool to help you automatically add Co-authored-by trailers to git commits during pair/mob programming
You can attribute a git commit to more than one author by adding one or more Co-authored-by trailers to the commit's message. Co-authored commits are visible on GitHub. For more information, see here.
This CLI tool will help you add them automatically and also help you store and manage co-authors for pair/mob programming sessions.
Features
- Cross-platform
- Co-authors management via CLI
- Multi-select menu to choose co-author(s) for mobbing
- Automatic appending of
Co-authored-bytrailers to commit - No need of any git aliases
Installation
Prerequisites
- Git v2.32 or later
With Binary Package
-
Download and extract the appropriate binary depending on your OS from the latest GitHub release
-
Ensure the binary is in your
PATHvariable e.g. you may place the file inC:\Windowson Windows or/usr/local/binon Linux and macOS -
Ensure the binary is set as executable (Linux and macOS)
$ chmod +x ./git-mob
With Cargo
- Install Rust
- If you are using Windows, you will also need to install certain C++ build tools
$ cargo install git-mob-tool
Setup & Configuration
-
Set up a global
prepare-commit-msggithook which appends theCo-authored-bytrailers to the commit message.$ git mob setupIf a repository overrides
core.hooksPathgit configuration variable (e.g when using husky), then you will additionally need to rungit mob setup --localfor each such repository. This will set up a local (repository-specific)prepare-commit-msggithook which invokes the global one.If you prefer to set this up manually or encounter any issues with the automated setup process, you can follow steps outlined here.
-
Store your team members' details with keys
$ git mob team-member --add lm "Leo Messi" leo.messi@example.com $ git mob team-member --add em "Emi Martinez" emi.martinez@example.com $ git mob team-member --add sa "Sergio Aguero" sergio.aguero@example.com
Usage
-
To mob with some team member(s):
$ git mob --with ? Select active co-author(s): > [ ] Leo Messi <leo.messi@example.com> [ ] Emi Martinez <emi.martinez@example.com> [ ] Sergio Aguero <sergio.aguero@example.com> [↑↓ to move, space to select one, → to all, ← to none, type to filter ]Alternatively, if you remember the team member keys, you may bypass the multi-select menu by running:
$ git mob --with lm emThis will start a global mob session. Any git commit made afterwards will have
Co-authored-bytrailers added to the commit message as shown below:This is an example commit message Co-authored-by: Leo Messi <leo.messi@example.com> Co-authored-by: Emi Martinez <emi.martinez@example.com> -
To add a non-team member to the mob session:
$ git mob --add "Diego Maradona" diego.maradona@example.com -
To clear the mob session:
$ git mob --clear -
To view the co-authors in the mob session:
$ git mob --list -
To print help information:
$ git mob help $ git mob help team-member
Development
Prerequisites
- Rust (latest stable)
- Git v2.32 or later
- On Windows: Microsoft C++ Build Tools
Building from Source
$ git clone https://github.com/Mubashwer/git-mob.git
$ cd git-mob
$ cargo build --release
Running Tests
$ cargo test
Code Quality
Format code:
$ cargo fmt --all
Run linting:
$ cargo clippy --all-targets -- -D warnings
Contributing
We welcome contributions! Please see our Contributing Guide for details on:
- Setting up your development environment
- Code style and conventions
- Commit message format (Conventional Commits)
- Testing guidelines
- Pull request process
Troubleshooting
- When using
git mob --help, an error may occur because Git looks for man pages for subcommands. To avoid this error, use one of the following alternatives:git mob helpgit-mob --help
README copy captured when this server was indexed; it may lag the repository. The original is authoritative.