-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
34 lines (33 loc) · 995 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
[user]
name = Bruce Ricard
email = [email protected]
[push]
default = upstream
[alias]
co = checkout
ds = "diff --staged"
flog = "log --pretty=fuller --decorate"
lg = "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
llog = "log --date=local"
lol = "log --graph --decorate --oneline"
lola = "log --graph --decorate --oneline --all"
love = "!f(){ \
if [[ -z $1 ]]; then echo 'You must pass a file name as the first parameter to \"love\"' >&2 ; exit 1; fi ;\
if [[ -z $2 ]]; then echo 'You must pass a line matcher as the second parameter to \"love\"' >&2 ; exit 1; fi ;\
FILE_NAME=$1 ;\
FIRST_LINE=$2 ;\
LAST_LINE=${3:-+1} ;\
git log -L ${FIRST_LINE},${LAST_LINE}:${FILE_NAME} ;\
};f"
[pull]
rebase = true
[rebase]
autoStash = true
[core]
pager = diff-so-fancy | less --tabs=4 -RFX
[color]
ui = always
[interactive]
diffFilter = diff-highlight
[log]
follow = true