-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
55 lines (55 loc) · 1.41 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
[color]
diff = auto
status = auto
branch = auto
grep = auto
[core]
excludesfile = ~/.gitignore
pager = less -x2
editor = vim
quotepath = false
[diff]
algorithm = patience
[push]
default = current
[alias]
br = branch -a -v
co = checkout
ci = commit -v
d = diff
di = diff
dc = diff --cached
dic = diff --cached
l = log --graph -n 20 --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(green)- %an, %cr%Creset'
la = log --graph -n 20 --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(green)- %an, %cr%Creset' --branches
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 --stat -n 20 -p
ls = log --stat --abbrev-commit -n 1 # display previous log
puhs = push
psuh = push
pus = push
puh = push
pushf = push --force-with-lease
pl = !git pull && git submodule update --init
s = status --short --branch
st = status -sb
tree = log --graph --pretty=oneline --decorate --date=short --abbrev-commit --branches
amc = am --show-current-patch
[user]
email = [email protected]
name = Sheile
[url "https://"]
insteadOf = git://
[pager]
log = diff-highlight | LESS='-R --quit-if-one-screen --no-init' less
show = diff-highlight | LESS=-R less
diff = diff-highlight | LESS=-R less
[merge]
ff = false
[pull]
rebase = true
[fetch]
prune = true
[rebase]
autostash = true