aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--base.yaml1
-rw-r--r--base/gitconfig4
-rw-r--r--base/gitmessage13
3 files changed, 18 insertions, 0 deletions
diff --git a/base.yaml b/base.yaml
index 17fc2f0..cd6250b 100644
--- a/base.yaml
+++ b/base.yaml
@@ -22,6 +22,7 @@
~/.capsesc: base/capsesc
~/.curlrc: base/curlrc
~/.gitconfig: base/gitconfig
+ ~/.gitmessage: base/gitmessage
~/.makepkg.conf: base/makepkg.conf
~/.npmrc: base/npmrc
~/.tmux.conf: base/tmux.conf
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