aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorAdam Hovorka <[email protected]>2020-08-04 14:07:41 -0600
committerAdam Hovorka <[email protected]>2020-08-04 14:07:41 -0600
commit0b2ba4788ea38fe5a7d071cbc218c1d4ee6bd94a (patch)
tree53f597925b2b610ed6bac876ed13fc21565bd6dc /base
parenteffb85ed2e011209369af6be5e61f20c8f2a82f5 (diff)
[feat] Add commit type reference to gitconfig
Diffstat (limited to 'base')
-rw-r--r--base/gitconfig4
-rw-r--r--base/gitmessage13
2 files changed, 17 insertions, 0 deletions
diff --git a/base/gitconfig b/base/gitconfig
index 1461a1d..a16f5f8 100644
--- a/base/gitconfig
+++ b/base/gitconfig
@@ -18,6 +18,10 @@
[core]
editor = vim
excludesfile = ~/.gitignore_global
+[init]
+ defaultBranch = main
+[commit]
+ template = ~/.gitmessage
[credential]
helper = cache --timeout 3600
[merge]
diff --git a/base/gitmessage b/base/gitmessage
new file mode 100644
index 0000000..f948470
--- /dev/null
+++ b/base/gitmessage
@@ -0,0 +1,13 @@
+[type] Subject line...
+
+# Commit Types:
+# - fix A bug fix
+# - feat A new feature
+# - docs Changes in documentation
+# - style Everything related to styling
+# - revert Rolling back changes made in previous commits
+# - refactor Code changes that neither fix a bug nor add a feature
+# - test Everything related to testing
+# - chore Updating build tasks, package manager configs, etc.
+# - [...]! Breaking change
+# \ No newline at end of file