Configuring Git to Better our Lives

I give directions for setting up a git commit template & using VS Code for commit messages

Watch this video to see what we are about to setup

Like what you saw?

Only follow this post if you have Visual Studio Code

The following commands will:

  1. Download this git template as ~/.git-commit-template.txt
  2. Configure git to use the template downloaded
  3. Configure git to use VS Code as the default commit message editor

Copy the following into your terminal or git bash in one shot, its all one command chain and press enter to run it.

This presumes you are able to start VS Code in a terminal with the command code.

curl "" --output ~/.git-commit-template.txt \
&& git config --global commit.template ~/.git-commit-template.txt \
&& git config --global core.editor "code --wait"

Aaron Young © 2020. All rights reserved.