Last active
August 27, 2024 09:40
-
-
Save Aierbote/5bcd55bd9b1282817c0fe6494a5575f0 to your computer and use it in GitHub Desktop.
MY PERSONAL GIT TEMPLATE. Spotted this tip on DailyDev https://dev.to/abbeyperini/git-commit-message-template-in-terminal-and-vs-code-326p with more hints https://gist.github.com/lisawolderiksen/a7b99d94c92c6671181611be1641c733?permalink_comment_id=3677190
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type(scope): title | |
# No more than 50 chars ##### 50 chars is here: # | |
# Leave a blank line between title ⤴️ and body ⤵️ | |
### BODY | |
# Wrap at 72 chars ################################ 72 chars is here: # | |
### OPTIONAL | |
# Co-authored-by: name <[email protected]> | |
# with '#' will be ignored, and an empty message aborts the commit. | |
### TIPS | |
# use `cw` to delete word and switch to Edit Mode in vim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After setting it up correctly, your default go to command will be just
git commit
, bye bye-m "string"
, especially if you like special character in commit messages, without the annoying escaping character...Tip
This one-line setup might come in handy