-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
59 lines (59 loc) · 1.48 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
[user]
name = Kevin McGill
email = [email protected]
signingkey = ~/.ssh/id_ed25519.pub
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
[color "status"]
added = green
changed = yellow
untracked = red
[color "diff"]
meta = yellow
old = red
new = green
[log]
# Better date formats in logs
date = rfc
[alias]
st = status
co = checkout
# Show number of commits from all authors.
stats = shortlog -sn
# Show detailed logs
graph = log --graph --decorate --stat --date=iso --all
# Empty line between results from different files.
find = "!git grep --break -C1"
# Compare commits in one branch against another, e.g. $ git compare tkt-0021 to develop
compare = "!f() { git log --oneline $1..$2; }; f"
# See which commits are on your local branch that aren’t on the remote
local = "! git log --oneline --no-merges origin/$(git rev-parse --abbrev-ref HEAD).."
# See which commits are on the remote that aren’t on your local branch
upstream = "! git fetch && git log --oneline --no-merges ..origin/$(git rev-parse --abbrev-ref HEAD)"
[core]
excludesfile = ~/.gitignore
whitespace = warn
[push]
default = current
[pull]
rebase = true
[help]
autocorrect = 1
[gpg]
format = ssh
[gpg "ssh"]
allowedSignersFile = ~/.ssh/allowed_signers
[commit]
gpgsign = true
[tag]
gpgsign = true
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f