Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Git Mob Co-author commitsNew to Visual Studio Code? Get it now.

Git Mob Co-author commits

Richard Kotze

|
2,587 installs
| (9) | Free
Add multiple authors to a commit when pair/mob programming from the source control tab.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Git Mob Co-author commits

Build Status

VS Code extension to add multiple co-authors to commits, managed all from the source control tab.

Great extension when pair programming or mobbing with your team. Requires Git Mob cli

Git Mob in action

  1. Install
  2. Features
  3. Settings
  4. Contributing

The Git Mob project for VS code co-author commits

Read our blog post to find out learn more about Git Mob.

Install

Git Mob Cli is needed and supports:

  • Global install npm i -g git-mob
  • Dev dependency npm i -D git-mob

(See git-mob for more info)

Search for "git-mob" in Extensions and click install.

Ensure you have set your primary author in Git

$ git config --global user.name "Jane Doe"
$ git config --global user.email "jane@example.com"

Features

  • Manage & view all your co-authors in source control tab
  • Search GitHub for co-authors, see setting options to learn more.
  • Change primary author from co-author list
  • Search suggested co-authors from the "More Authors" list (all contributors to the repository)
  • Add new co-authors and manage them in .git-coauthors file
  • Add new co-authors from current repository into your .git-coauthors file
  • Git emojis search and select Gitmojis
  • VS Code workspace support
  • Select multiple co-authors (shift or ctrl) to be added to commit
  • Auto reload when updating .git-coauthors file in VS Code
  • Status bar shows if using template file or prepare-commit-msg hook
  • Configurable see setting options

Add new co-authors

Option 1: CTRL+shift+p or ⌘+⇧+p and search for "Add new co-author". Fill in all input fields. (ctrl+shift+p -> "Open .git-coauthors file")

Option 2: Add your co-authors to the .git-coauthors files in your user folder.

open_coauthors

Add new co-authors from repository

Click the plus + button on an author in More Authors list.

image

Search suggested co-authors

Click the search icon on the More Authors section or CTRL+shift+p or ⌘+⇧+p and search for "Search suggested co-authors".

image

Workspace support

Select one of multiple open Git repositories and add co-author metadata to source control input field.

workspace-support

Git Emojis

Using the standardised list from Gitmoji.

Search and select an emoji to add to the Git message input field

git emojis select list

Change primary author

Change primary author

Settings

Post commit -> Solo

After a commit remove selected co-authors from input to unselected. If you commit in the command-line the UI will update as well.

Default: false

Author list -> Expand more authors

Expand 'More Authors' tree when UI starts.

Default: true

Github -> Personal Access Token

Search for co-authors on GitHub you will need to generate a PAT.

  1. Visit GitHub > settings > tokens
  2. Click "generate new token"
  3. Select "user:read" (This allows GitMob to fetch a users public email)

Default: <empty>

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2019 Microsoft