Dany Paredes
Dany Paredes | Javascript / Web

Dany Paredes | Javascript / Web

Write your commits with VSCode

Write your commits with VSCode

Dany Paredes's photo
Dany Paredes
·Sep 30, 2020·

1 min read

Subscribe to my newsletter and never miss my upcoming articles

If you use vscode for commits, the screen area is a bit small.

Add these lines in .gitconfig to configure for use vscode for write commits.

[core]
    editor = code --wait
[difftool "vscode"]
    cmd = code --wait --diff $LOCAL $REMOTE

Save .gitconfig, and in vscode, type git commit it will open an empty file to write the commit message.

Alt Text

When closing the file, the message is the commit message.

Photo by Aaron Burden on Unsplash

 
Share this