-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
30 lines (29 loc) · 910 Bytes
/
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
[alias]
co = checkout
ci = commit
st = status
br = branch
di = diff
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
lg = log --graph --decorate --oneline --color --all
type = cat-file -t
dump = cat-file -p
amend = commit --amend -a
ds = diff --staged
fetchall = fetch -v --all
log-fancy = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit --date=relative
log-me = !UN=$(git config user.name)&& git log --author="\"$UN\"" --pretty=format:'%h %cd %s' --date=short
log-nice = log --graph --decorate --pretty=oneline --abbrev-commit
panic = !tar cvf ../git_panic.tar *
wdiff = diff --word-diff=plain
[color]
ui = true
[pager]
branch = false
[include]
path = .gitconfig.local
[pull]
ff = only
[fetch]
# Automatically remove references to deleted remote branches when fetching/pulling
prune = true