cmc/dotfiles
Using GNU Stow to manage my dotfiles.
clone: git clone https://gitbay.org/cmc/dotfiles.git
main: common/git/.gitconfig · raw
1# This is Git's per-user configuration file.
2[user]
3 name = Christian Cleberg
4 email = hello@cleberg.net
5 signingkey = hello@cleberg.net
6[core]
7 excludesfile = ~/.gitignore_global
8 editor = emacs
9 autocrlf = input
10 untrackedCache = true
11[commit]
12 gpgsign = true
13[gpg]
14 program = gpg
15[alias]
16 # Quick status and logs
17 st = status
18 co = checkout
19 br = branch
20 # A beautiful, readable graph log
21 lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
22 # Undo the last commit but keep changes
23 uncommit = reset --soft HEAD~1
24 # Clean up merged branches
25 trim = !git branch --merged | grep -v '*' | xargs -n 1 git branch -d
26
27[color]
28 ui = auto
29
30[init]
31 defaultBranch = main
32
33[push]
34 # Push to the current branch by default
35 default = current
36 # Automatically setup remote tracking on first push
37 autoSetupRemote = true
38
39[pull]
40 # Avoid creating unnecessary merge commits when pulling
41 rebase = true
42
43[rebase]
44 # Automatically stash changes before rebasing and pop after
45 autoStash = true
46
47[diff]
48 # Use an algorithmic approach that produces more readable diffs
49 algorithm = histogram
50 # Detect renames better
51 renames = true
52
53[help]
54 # Correct typos automatically (0.5 second delay)
55 autocorrect = 5
56[sendemail]
57 smtpserver = smtp.soverin.net
58 smtpuser = hello@cleberg.net
59 smtpencryption = ssl
60 smtpserverport = 465
61[safe]
62 directory = /git/krz/hn.git