summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-01-16 12:11:57 +0200
committerLars Wirzenius <liw@liw.fi>2023-01-16 12:11:57 +0200
commitec595ef52fef56110fb611854e2d981627c26c82 (patch)
tree59d2de58f9dafa881abf3f62714f1b30646f6b7f
parent8ba299ece508c0124cc80c6ab8edd24e1d3bd4d6 (diff)
downloadliw-dot-files-ec595ef52fef56110fb611854e2d981627c26c82.tar.gz
improve git config for upcloud
Sponsored-by: author
-rw-r--r--git-commit-template-upcloud32
-rw-r--r--gitconfig-upcloud49
2 files changed, 80 insertions, 1 deletions
diff --git a/git-commit-template-upcloud b/git-commit-template-upcloud
new file mode 100644
index 0000000..43a7a35
--- /dev/null
+++ b/git-commit-template-upcloud
@@ -0,0 +1,32 @@
+
+
+# If applied this commit will...
+#
+# <type>[optional scope]: <description>
+#
+# [optional body]
+#
+# [optional footer(s)]
+#
+# https://www.conventionalcommits.org/en/v1.0.0/
+# feat: new feature
+# feat!: this feature breaks something
+# fix: bug fix
+# fix(parse): a bug fix to the parser
+# build:
+# chore:
+# ci:
+# docs:
+# style:
+# refactor:
+# perf:
+# test:
+#
+# footers:
+# BREAKING-CHANGE: for anything that breaks semver major version
+# Closes: #id
+#
+# Why is it necessary? (Bug fix, feature, improvements?)
+# How does the change address the issue?
+# What side effects does this change have?
+
diff --git a/gitconfig-upcloud b/gitconfig-upcloud
index 3818c75..662a238 100644
--- a/gitconfig-upcloud
+++ b/gitconfig-upcloud
@@ -1,3 +1,50 @@
[user]
- name = liw
+ name = Lars Wirzenius
email = lars.wirzenius@upcloud.com
+
+[commit]
+ template = /home/liw/liw-dot-files/git-commit-template-upcloud
+
+[core]
+ excludesfile = /home/liw/.git-global-ignore
+
+[url "ssh://git@git.liw.fi/"]
+ pushInsteadOf = git://git.liw.fi/
+
+[url "ssh://gitano@git.gitano.org.uk/personal/liw/"]
+ pushInsteadOf = git://git.gitano.org.uk/personal/liw/
+
+[url "ssh://git@gitorious.org/"]
+ pushInsteadOf = git://gitorious.org/
+
+[color]
+ ui = auto
+
+[pull]
+ ff = only
+
+[push]
+ default = simple
+
+[sendemail]
+ smtpserver = localhost
+ smtpserverport = 25
+ from = Lars Wirzenius <liw@liw.fi>
+ envelope-sender = liw@liw.fi
+ envelopesender = liw@liw.fi
+ suppresscc = self
+
+[annex]
+ sshcaching = true
+
+[init]
+ defaultBranch = main
+
+[protocol]
+ version = 2
+
+[interactive]
+ diffFilter = delta --color-only --features=interactive
+
+[diff]
+ external = difft