VS Code extension to easily co-author a commit message from the source control panel.
Helpful when pair programming.
Open VS Code and search for "git-mob" in Extensions panel.
OR
Via the terminal code --install-extension RichardKotze.git-mob
Available in VS Code marketplace and open VSX registry
If you also use git-mob cli they work fine together.
Select co-authors - CTRL+shift+p
or ⌘+⇧+p
-> "Select co-authors". Use the multi-selector to add and remove co-authors.
Solo - clear all selected co-authors: CTRL+shift+p
or ⌘+⇧+p
-> "Solo: remove all co-authors"
Add new co-authors from repository contributors or add directly to your co-authors file .git-coauthors
.
To keep track of co-authors git-mob uses a JSON file called .git-coauthors
, and will try to find it in the following directories:
- If
GITMOB_COAUTHORS_PATH
environment variable is set this will override any other settings. - If the current Git repository has a
.git-coauthors
file in the root directory. - The default is the users home directory at
~/.git-coauthors
.
- Append multiple co-authors to a commit message
- Select multiple co-authors (
shift
orctrl
or⌘
) in SCM panel view - Easily add co-author data by searching repository contributors co-authors from the "More Authors" list.
- After a commit remove all selected co-authors
- Workspace support, multiple Git repositories
- Search and add co-authors from GitHub using anonymous email
- Change primary author
- Right-click and copy co-author data.
- Add emojis to commits (Gitmojis)
- Configurable see setting options
- Global Git Mob meaning switch between projects will have same co-authors selected. (
v1.17.0
) prepare-commit-msg
hook support removed (v1.12.0
)
Option 1: CTRL+shift+p
or ⌘+⇧+p
-> "Add new co-author". Fill in all input fields.
Option 2: ctrl+shift+p
or ⌘+⇧+p
-> "Open .git-coauthors file" or use UI to open co-authors file .git-coauthors
.
Click the plus + button on an author in More Authors list.
Click the search icon on the More Authors section or CTRL+shift+p
or ⌘+⇧+p
-> "Search Git repository for co-authors".
Select one of multiple open Git repositories and add co-author metadata to source control input field. You can have different co-authors applied to all the open Git repositories.
Using the standardised list from Gitmoji.
Search and select an emoji to add to the Git message input field.
CTRL+shift+p
or ⌘+⇧+p
-> "Search Gitmojis - emojis"
CTRL+shift+p
or ⌘+⇧+p
-> "Change primary author"
After a commit remove selected co-authors. If you commit in the command-line the UI will update as well.
Default: false
Expand 'More Authors' tree when UI starts.
Default: true
Add a new author directly to 'Co-authoring' from 'More Authors'.
Default: true
Co-author list sorting direction.
Default: ascending