-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
58 lines (48 loc) · 1.53 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
[user]
name = Rich Haase
email = [email protected]
[includeIf "gitdir:~/psg/repos/"]
path = .gitconfig.psg
[includeIf "gitdir:~/apfm/"]
path = .gitconfig.apfm
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[alias]
amend = commit --amend --no-edit
authors = !git log --format='%aN <%aE>' | grep -v 'users.noreply.github.com' | sort -u --ignore-case
co = checkout
cob = checkout -b
conflicts = diff --name-only --diff-filter=U
count-lines = "! git log --author=\"$1\" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf \"added lines: %s, removed lines: %s, total lines: %s\\n\", add, subs, loc }' #"
lg = log --date=short --graph --format=\"%C(bold cyan)%h%C(reset) %C(red)%ad%C(auto)%d %C(reset)%s %C(cyan)(%an)\"
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
local-branches = !git branch -vv | cut -c 3- | awk '$3 !~/\\[/ { print $1 }'
recent-branches = !git branch --sort=-committerdate | head
rv = remote --verbose
sb = status -sb
st = status
sup = submodule update
undo = reset HEAD~1 --mixed
[color]
ui = auto
branch = auto
diff = auto
status = auto
[fetch]
prune = true
recurseSubmodules = on-demand
[pull]
rebase = merges
[status]
submoduleSummary = true
showUntrackedFiles = all
short = false
[diff]
submodule = log
colorMoved = zebra
[log]
abbrevCommit = true