-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
executable file
·48 lines (45 loc) · 1.16 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
[core]
pager = less -+S
[alias]
a = add
aa = add -A
b = branch
d = diff
c = commit -m
ca = commit -am
s = status
ss = stash save
l = log --graph --pretty=format:'%C(red)%h %C(yellow)%aN%Creset%C(cyan)%d%Creset %s %Cgreen(%cr)%Creset %Creset' --all
# list committed filenames only, eg, git sf HEAD
sf = show --pretty="format:" --name-status
# show log from HEAD (useful for old commits)
lh = log --graph --pretty=format:'%C(red)%h %C(yellow)%aN%Creset%C(cyan)%d%Creset %s %Cgreen(%cr)%Creset %Creset'
lsa = log --graph --pretty=format:'%C(red)%h %C(yellow)%aN%Creset%C(cyan)%d%Creset %s %Cgreen(%cr)%Creset %Creset' --all
committers = log --pretty=format:"%an" | sort -u
[diff]
;external = git_diff_wrapper
; show git log in terminal, not in less
; Hunk alignment makes diffs easier to read.
; diff.compactionHeuristic
[pager]
diff = less
[difftool]
prompt = false
# prevent reapplication of patch when rebasing
[rerere]
enabled=true
[mailmap]
file = ~/.mailmap
[user]
name = Sean
email = [email protected]
[color]
ui = auto
[merge]
ff = only
stat = true
[diff]
renames = copies
mnemonicprefix = true
[push]
default = simple