# 使用 Homebrew 安装 git-mob

查看 git-mob 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:git-mob
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install git-mob
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:git-mob
- **软件包管理器:** Homebrew
- **版本:** 4.0.1
- **来源摘要:** CLI tool for including co-authors in commits
- **主页:** <https://github.com/rkotze/git-mob/blob/master/packages/git-mob>
- **最后更新:** 2026-06-18T09:25:51+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- git-add-coauthor (别名)
- git-mob (别名)
- git-mob-print (别名)
- git-solo (别名)
- git-suggest-coauthors (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 4.0.1
## 项目历史与用法

Git Mob is a command-line tool for adding co-author trailers to Git commits during pair programming and mob programming. It keeps a local list of co-authors and updates commit-message templates or hook-based flows so commits include the people working together.

### 项目历史

Richard Kotze published the Git Mob repository in February 2018. The repository is organized as a workspace, with the Git Mob CLI package and a shared git-mob-core package for reusable co-author logic.

The changelog shows the CLI growing from a simple co-author helper into a TypeScript and Node-based toolchain. The 2.x line integrated git-mob-core for core features; 3.0.0 moved to ESM and Node 16; 4.0.0 completed a TypeScript migration for main files and removed lower-value edit/delete commands.

### 采用历史

Git Mob follows the adoption of GitHub's `Co-authored-by` commit trailers, which make commits visible as co-authored on GitHub. The tool packages that convention for teams that pair or mob frequently, reducing the friction of remembering names, emails, and trailer formatting.

Its distribution is centered on npm and Homebrew, with a related Visual Studio Code extension and a reusable core package. That makes it especially relevant to JavaScript-heavy teams and collaborative coding shops that switch between terminal and editor workflows.

### 使用方式

Users configure their primary Git author normally, store teammates in `.git-coauthors`, then run commands such as `git mob ad bd` to select co-authors by initials. Subsequent commits include `Co-authored-by` trailers; `git solo` returns to a solo author flow.

The CLI can add co-authors, suggest co-authors from repository history, print the active mob, fetch GitHub no-reply author details when enabled, and support commit-message hooks for users who commit with `git commit -m`.

### 为什么软件包爱好者会关心

Git Mob is package-nerd interesting because it turns a social collaboration convention into a Git subcommand and a tiny local data file. It also shows how a CLI can bridge Git config, commit templates, npm packaging, Homebrew packaging, and editor extensions without needing a server.

### 时间线

- 2018: Public GitHub repository created.
- 2023: git-mob 2.5.0 integrated git-mob-core for main CLI features.
- 2023: git-mob 3.0.0 moved to ESM and required Node 16.
- 2024: git-mob 4.0.0 completed the main TypeScript migration and changed the command set.
- 2025: git-mob 4.0.1 fixed exact co-author email filtering.

### Related projects

- Git Mob relates to GitHub's co-author trailer support, the Git Mob VS Code extension, git-mob-core, and older pairing tools such as git-duet. It differs from general commit-template tools by centering the pair or mob roster.

### 来源

- <https://api.github.com/repos/rkotze/git-mob>
- <https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/creating-a-commit-with-multiple-authors>
- <https://formulae.brew.sh/formula/git-mob>
- <https://github.com/rkotze/git-mob#readme>
- <https://github.com/rkotze/git-mob/blob/master/CHANGELOG.md>
- <https://github.com/rkotze/git-mob/tree/master/packages/git-mob>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: $GITMOB_COAUTHORS_PATH, .git-coauthors, ~/.git-coauthors

## Combined YAML source

View the package source record on GitHub. [combined/git-mob.yml](https://github.com/mxcl/pkgdb/blob/main/combined/git-mob.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
