summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-11 06:41:17 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-08-11 06:41:17 +0200
commitd16771c65de9f71ccc86a07314c1c8c743ffa232 (patch)
tree7aad1a54c0095f130232acfc52c964e6bf65c2ed /.config
parent023aac7acabae2ed4a5238e5da05a3192845ee5d (diff)
git: Add git configuration
Diffstat (limited to '.config')
-rw-r--r--.config/git/config74
1 files changed, 74 insertions, 0 deletions
diff --git a/.config/git/config b/.config/git/config
new file mode 100644
index 0000000..f09533c
--- /dev/null
+++ b/.config/git/config
@@ -0,0 +1,74 @@
+[user]
+ email = mail@thomasvoss.com
+ name = Thomas Voss
+ signingKey = /home/thomas/.ssh/id_rsa.pub
+
+[core]
+ editor = nvim
+
+[init]
+ defaultBranch = master
+
+[alias]
+ a = add
+ ap = apply
+ b = branch
+ c = commit -S -v
+ ca = commit -S -v --amend
+ cg = config
+ cl = clone
+ cm = check-mailmap
+ co = checkout
+ df = diff
+ ds = diff --staged
+ dw = diff --word-diff
+ fp = format-patch
+ i = init
+ l = log
+ m = merge
+ pa = "!f() { git remote | xargs -I% -n1 git push \"%\" \"$@\"; }; f \"$@\""
+ pl = pull
+ ps = push
+ rb = rebase
+ rr = restore
+ rs = reset
+ rt = remote
+ rv = revert
+ se = send-email
+ sh = show
+ sl = log --oneline
+ ss = status --short
+ st = status
+ ta = tag -as
+ t = tag
+
+[commit]
+ gpgSign = true
+
+[credential]
+ helper = cache --timeout 3600
+
+[gpg]
+ program = gpg2
+ format = ssh
+
+[pull]
+ rebase = false
+
+[push]
+ autoSetupRemote = true
+
+[sendemail]
+ annotate = yes
+ confirm = always
+ from = Thomas Voss <mail@thomasvoss.com>
+ smtpencryption = ssl
+ smtpserverport = 465
+ smtpserver = smtp.migadu.com
+ smtpuser = mail@thomasvoss.com
+
+[tag]
+ gpgSign = true
+
+[safe]
+ directory = /opt/flutter