-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgitconfig
55 lines (55 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
[include]
path = .gitconfig.local
[core]
excludesfile = ~/.gitignore_global
attributesfile = ~/.gitattributes_global
pager = less -r
[color]
ui = auto
[push]
default = tracking
[branch]
autosetuprebase = always
[diff]
renames = copies
[merge]
ff = false
[pull]
rebase = true
[pager]
log = diff-highlight | less
show = diff-highlight | less
diff = diff-highlight | less
[alias]
alias = !git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1\\\t => \\2/' | sort
b = branch -a
br = browse-remote
ci = commit
co = checkout
d = diff
dc = diff --cached
di = diff
dic = diff --cached
f = fetch --prune
fs = !git f && git su
ignore = !([ ! -e .gitignore ] && touch .gitignore) | echo $1 >> .gitignore
info = remote show origin
l = log --graph -n 20 --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(green)- %an, %cr%Creset'
ll = log --stat --abbrev-commit
ln = log --graph -n 20 --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(green)- %an, %cr%Creset' --name-status
lp = log --oneline -n 20 -p
ls = log --stat --abbrev-commit -n 1 # display previous log
s = status --short --branch
st = status
su = submodule update
gr = log --graph --decorate --oneline
graph = log --graph --decorate --oneline
sst = status --short --branch
difc = diff --color-words
[user]
name = unosk
email = [email protected]
[filter "hawser"]
clean = git hawser clean %f
smudge = git hawser smudge %f
required = true