From 807cd5ed5ea286eb6aa35ae5c04ed6cf24b63531 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Sat, 28 Sep 2024 21:19:38 +0100 Subject: [PATCH] Add git configuration --- dot_gitconfig | 44 ++++++++++++++++++++++++++++++++++++++++++++ dot_gitignore | 6 ++++++ 2 files changed, 50 insertions(+) create mode 100644 dot_gitconfig create mode 100644 dot_gitignore diff --git a/dot_gitconfig b/dot_gitconfig new file mode 100644 index 0000000..14900f7 --- /dev/null +++ b/dot_gitconfig @@ -0,0 +1,44 @@ +[color] + ui = true + branch = always + status = always + interactive = always + diff = true +[user] + name = Maximilian Friedersdorff + email = max@friedersdorff.com + signingkey = F5E7FCB3 +[core] + editor = vim + excludesfile = /home/max/.gitignore +[merge] + tool = diffuse + ff = true +[push] + default = simple +[alias] + lg = log --graph --pretty=format:'%Cred%h%Creset %G? %ad %s %C(bold blue)<%an>%Creset %C(yellow)%d%Creset' --date=short + hist = log --graph --full-history --all --pretty=format:'%Cred%h%Creset %G? %ad %s %C(bold blue)<%an>%Creset %C(yellow)%d%Creset' --date=short + struct = log --graph --full-history --all --pretty=format:'%ad %s %Creset %C(yellow)%d%Creset' --date=short --simplify-by-decoration + co = checkout + ci = commit + st = status + br = branch + df = diff + commit = commit -S + vh = verify-commit HEAD + vc = verify-commit + vt = tag -v + tag = tag -s + t = tag -s + alias = "!req=$'\\033[0;31m=\\033[0m'; git config --get-regexp ^alias\\. | sed -e s/^alias\\.// -e \"s/\\ /\t$req\\ /\"" + r = rebase + m = merge + pa = !git remote | xargs -L1 git push --all +[pull] + rebase = false +[sendemail] + smtpserver = mail.friedersdorff.com + smtpuser = max + smtpencryption = tls + smtpserverport = 587 diff --git a/dot_gitignore b/dot_gitignore new file mode 100644 index 0000000..6c5ee8d --- /dev/null +++ b/dot_gitignore @@ -0,0 +1,6 @@ +[._]*.s[a-w][a-z] +[._]s[a-w][a-z] +*.un~ +Session.vim +.netrwhist +*~