Skip to content

Instantly share code, notes, and snippets.

@felipeelia
Created September 22, 2022 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felipeelia/14c0df9216422844ab5ca798670fecbc to your computer and use it in GitHub Desktop.
Save felipeelia/14c0df9216422844ab5ca798670fecbc to your computer and use it in GitHub Desktop.
Visual Studio Code snippet to add co-authors to commits
{
// Hit ctrl+P and select Snippets: Configure User Snippets
// New Global Snippets file
// Add `global-snippets` as the name and copy this file contents in it
// Go to the commit box, start typing `git_co_authored_by`, hit ctrl+space and select this snippet
"Git Co-authored-by": {
"prefix": "git_co_authored_by",
"body": [
"",
"",
"Co-authored-by: ${1:Full Name} <${2:username}@users.noreply.github.com>"
],
"description": "Add a co-author to the commit"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment