git templates

Make commit template

vi .gitmessage.txt

git config --global commit.template ./.gitmessage.txt

Commit template 1

# feat: subject

# body
# ----- Type list
#   feat: A new feature
#   fix: A bug fix
#   refactor: Refactoring production code
#   style: Formatting, missing semi colons, etc; no code change
#   docs: Changes to documentation
#   test: Adding tests, refactoring test; no production code change
#   chore: Updating build tasks, package manager configs, etc; no production code change
# ----- The subject guide
#   The blank line between the title and the body is required
#   Subjects should be no greater than 50 characters (25 characters in Korean)
#   should begin with a capital letter
#   and do not end with a period
#   Use an imperative tone to describe what a commit does, ple, use change; not changed or changes
# ----- The body guide
#   The body should limit the length of each line to no more than 72 characters
#   Can use dash(-) to explain
#   Explain the problem that this commit is solving. Focus on why you
#   are making this change as opposed to how (the code explains that).
#   Are there side effects or other unintuitive consequences of this
#   change? Here's the place to explain them.

# footer (The footer is optional and is used to reference issue tracker IDs.)
# Resolves: #
# See also: #

Commit template 2

Make Issue template in Github

Can make a template in a site or commit.

Github site - Settings - General - Features - Issues - Set up templates

Commited to .github/ISSUE_TEMPLATE/feature-issue-template.md.

Issue template 1

Issue template 2

Make PR template in Github

Make a file at .github/PULL_REQUEST_TEMPLATE.md.

PR template 1

PR template 2

Commit sytles

https://udacity.github.io/git-styleguide/arrow-up-right

https://www.conventionalcommits.org/en/v1.0.0/arrow-up-right

Last updated