-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
37 lines (34 loc) · 1.51 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
[user]
name = marcociccone
email = [email protected]
[alias]
lg1 = log --graph --author="marcociccone" --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'
lg2 = log --graph --author="marcociccone" --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)'
lg = !"git lg1"
co = checkout
st = status
rb = rebase
stash-rename = "!_() { rev=$(git rev-parse $1) && git stash drop $1 || exit 1 ; git diff-index --quiet HEAD; s=$?; [ $s != 0 ] && git stash save \"tmp stash from stash-rename\"; git stash apply $rev && shift && git stash save \"$@\" && [ $s != 0 ] && git stash pop stash@{1}; }; _"
#[diff]
# tool = kdiff3
#[difftool "kdiff3"]
# path = /usr/bin/kdiff3 \"$LOCAL\" \"$REMOTE\"
# keepBackup = false
# trustExitCode = false
[color]
ui = true
[push]
default = simple
[credential]
helper = cache --timeout=3600
[mergetool "kdiff3NoAuto"]
cmd = kdiff3 --L1 \"$MERGED (Base)\" --L2 \"$MERGED (Local)\" --L3 \"$MERGED (Remote)\" -o \"$MERGED\" \"$BASE\" \"$LOCAL\" \"$REMOTE\"
[merge]
tool = kdiff3
# Ignore lines with #gitignore
[filter "gitignore"]
clean = "sed '/# gitignore$/'d"
[filter "gitignore"]
smudge = cat
[core]
compression = 0