41

Created a VS Code extension for co-authoring commits in JS called git-mob

 5 years ago
source link: https://www.tuicool.com/articles/hit/meuAB32
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Git Mob

VS Code extension

Provides a UI for the command-line application Git Mob

Includes co-authors in commits when you collaborate on code. Use when pairing with a buddy or mobbing with your team.

Read our blog post to find out why git-mob exists: http://tech.findmypast.com/co-author-commits-with-git-mob

Mbaeui6.gif

Setup

NPM git-mob will be installed globally with this extension.

If not installed run this: npm i -g git-mob (Please follow the setup instructions on git-mob)

Please use latest version of git-mob .

Add new co-authors

Add your co-authors to the .git-coauthors files in your user folder. ( ctrl+shift+p -> "Open .git-coauthors file")

NrA7Zri.png!web

Add authors from repository

Click the plus button on authors items under More Authors .

MNZfyiA.png!web

Features

  • Add and remove co-authors from commit messages
  • View all your co-authors in SCM (git) tab
  • Manage your co-authors in .git-coauthors file
  • Add authors from current repository into your .git-coauthors file
  • Solo remove all co-authors from current commit
  • Reload Git Mob and auto reload when updating .git-coauthors file in VS Code
  • Status bar shows if using template file or prepare-commit-msg hook
  • If you change co-authors in command line it will update in VS Code

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK