forked from visay/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
56 lines (55 loc) · 1.4 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
[alias]
# @see https://git.wiki.kernel.org/index.php/Aliases
b = branch
ci = commit
cl = clone
co = checkout
cp = cherry-pick
dc = diff --cached
diff = diff --word-diff
f = "!git ls-files | grep -i"
grep = grep -Ii
l = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%an%Creset' --abbrev-commit
latest = !sh -c 'git log $1@{1}..$1@{0} "$@"'
s = status
search="git rev-list --all | xargs git grep -F"
staged = diff --cached
unstage = reset HEAD
what = show -s --pretty='tformat:%h (%s, %ad)' --date=short
who = shortlog -s --
whois = "!sh -c 'git log -i -1 --pretty=\"format:%an <%ae>\n\" --author=\"$1\"' -"
standup = "log --since yesterday --author 'Christian Trabold'"
report = "log --author='Christian Trabold' --since='1 monday ago' --until='now' --format='%Cgreen%ci%Creset %s%Creset' --no-merges"
[apply]
whitespace = warn
[commit]
template = ~/.gitmessage
[merge]
tool = kdiff3
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = true
[help]
autocorrect = 1
[status]
submodule = 1
[core]
editor = vim
excludesfile = ~/.gitignore_global
autocrlf = input
fileMode = true
[push]
default = current
[rerere]
enabled = 1
[include]
path = .gitconfig.local
[credential]
helper = osxkeychain
[filter "lfs"]
clean = git lfs clean %f
smudge = git lfs smudge %f
required = true