-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
34 lines (27 loc) · 929 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
31
32
33
[include]
# For username / github token / etc
path = ~/.gitconfig.local
[push]
default = simple
[help]
autocorrect = 5
[color]
ui = true
[alias]
br = branch
co = checkout
ci = commit
st = status
log25 = log --oneline --graph --decorate -25
l25 = log --oneline --graph --decorate -25
cb = checkout -b
sh = stash
shp = stash pop
shl = stash list
ro = remote update origin -p
lg = log --graph --pretty=format:'%C(yellow)%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
tag = tag -s
# e.g: git change-commits GIT_COMMITTER_NAME "old name" "new name"
change-commits = "!f() { VAR=$1; OLD=$2; NEW=$3; shift 3; git filter-branch --env-filter \"if [[ \\\"$`echo $VAR`\\\" = '$OLD' ]]; then export $VAR='$NEW'; fi\" \$@; }; f"
[core]
pager = bash -lc 'diff-highlight | strip_diff_leading_symbols | less -r' -