-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
48 lines (47 loc) · 1.57 KB
/
gitconfig
File metadata and controls
48 lines (47 loc) · 1.57 KB
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
[include]
path = ~/.gitconfig_local
[pretty]
concise = %C(yellow)%h%C(reset) %s (%an, %ar) %C(bold blue)%d%C(reset)
[alias]
s = status
ci = commit
co = checkout
amend = commit --amend -C HEAD
tidy = rebase -i @{upstream}
# l = log recent commits, current branch
# la = log recent commits, all branches
# lf = log full history, current branch
# laf = log full history, all branches
# recent = local branches ordered by most recent commits
l = log -n20 --graph --pretty=concise
la = log -n20 --all --graph --pretty=concise
lf = log --graph --pretty=concise
laf = log --all --graph --pretty=concise
recent = for-each-ref --count=5 --sort=-committerdate --format='%(HEAD) %(color:bold blue)%(refname:short)%(color:reset) %(subject) (%(authorname), %(creatordate:relative))' refs/heads/
behind = log --pretty=concise HEAD..@{upstream}
ahead = log --pretty=concise @{upstream}..HEAD
start = !git init && git commit --allow-empty -m 'Initial commit'
[advice]
pushNonFastForward = false
[push]
default = upstream
autoSetupRemote = true
[color]
ui = auto
[pull]
rebase = merges
[diff]
compactionHeuristic = true
algorithm = histogram
[pager]
show = $(brew --prefix git)/share/git-core/contrib/diff-highlight/diff-highlight | less
diff = $(brew --prefix git)/share/git-core/contrib/diff-highlight/diff-highlight | less
[interactive]
diffFilter = $(brew --prefix git)/share/git-core/contrib/diff-highlight/diff-highlight | less
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[credential]
helper = osxkeychain