-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
68 lines (61 loc) · 1.54 KB
/
.gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[alias]
st = status -sb
co = checkout --quiet
br = branch
ft = fetch -aupt
cm = commit -m
# Commits everything staged
amend = commit --amend --date now --no-edit
# Git commit, and go home
save = "!git add . && git commit -m ':construction: WIP' -n"
# Undo last commit
undo = reset --soft HEAD~
# Cleaning
cleangone = "!git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -D"
cleanup = "!git branch | xargs git branch -D; git tag -l | xargs git tag -d; git ft -t; git gc; git prune"
## Misc
# Fuzzy search git commit messages
fzf = "!git log --color=never --format='%h%d %s %cr' | fzf | awk '{print $1}' | git show --stdin"
# Gives me a list of directories that are touched
changed = diff --dirstat=files,0
# List contributors with number of commits
contributors = shortlog --summary --numbered
[user]
name = Marais Rossouw
email = me@marais.co
signingkey = 4B4F42ACD5E46944
[core]
autocrlf = input
eol = ef
editor = vim
ignorecase = false
excludesfile = ~/.gitignore-global
[init]
defaultBranch = main
[format]
pretty = format:%Creset%C(magenta)%G? %C(bold blue)%h %<(50,trunc)%Creset%C(italic)%s%Creset%Cgreen%<(12,trunc)% cd %C(dim cyan)%aN%C(bold brightcyan)% gD% D
[difftool]
prompt = false
[gui]
spellingdictionary = en
[log]
date = relative
follow = true
[commit]
gpgsign = true
[rerere]
enabled = true
[push]
default = current
autoSetupRemote = true
[pull]
rebase = true
[rebase]
autosquash = true
[branch]
autosetuprebase = always
[receive]
fsckObjects = true
[fetch]
prune = true
pruneTags = true