-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
40 lines (33 loc) · 1017 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
34
35
36
37
38
39
40
[core]
pager = less -SR
preloadindex = true
[user]
name = Jessie
email = mxjessie@users.noreply.github.com
[include]
path = ~/.gitconfig-work
[merge]
conflictstyle = diff3
[color]
interactive = true
branch = true
status = true
[diff "pdf"]
textconv = pdf2txt
[alias]
br = branch
ci = commit
co = checkout
df = diff
lg = log --oneline --graph --decorate
st = status
praise = blame
# git change-commits GIT_COMMITTER_{NAME,EMAIL} "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 "
tree = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
[push]
default = simple
[log]
date = local
[pull]
rebase = false