Skip to content

Instantly share code, notes, and snippets.

@webkong
Created January 11, 2021 08:52
Show Gist options
  • Save webkong/3124b630369a97f566979cef60ce9518 to your computer and use it in GitHub Desktop.
Save webkong/3124b630369a97f566979cef60ce9518 to your computer and use it in GitHub Desktop.
Git commit message template with emoji.
# Title: Summary, imperative, start upper case, don't end with a period
# No more than 50 chars. #### 50 chars is here: #
:emoji: <Type> [Title info]
# Remember blank line between title and body.
# Body: Explain *what* and *why* (not *how*). Include task ID (Jira issue).
# Wrap at 72 chars. ################################## which is here: #
<Body>
# At the end: Include Co-authored-by for all contributors.
# Include at least one empty line before it. Format:
# Co-authored-by: name <user@users.noreply.github.com>
#
# How to Write a Git Commit Message:
# https://chris.beams.io/posts/git-commit/
#
# 1.Separate subject from body with a blank line
# 2. Limit the subject line to 50 characters
# 3. Capitalize the subject line
# 4. Do not end the subject line with a period
# 5. Use the imperative mood in the subject line
# 6. Wrap the body at 72 characters
# 7. Use the body to explain what and why vs. how
#<Footer>
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch master
# Your branch is up to date with 'origin/master'.
#
# Changes to be committed:
# new file: installation.md
#
# emoji URL
#https://github.com/carloscuesta/gitmoji/blob/master/src/data/gitmojis.json
#https://gitmoji.dev/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment