forked from exterm/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
31 lines (31 loc) · 1.2 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
[alias]
st = status
pr = pull --rebase
dc = diff --cached
dcw = diff --cached --color-words
dw = diff --color-words
cm = commit -m
fix = commit --amend
graph = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
update = "!echo '==> Stash local changes'; res=$(git stash save 'auto stash by update'); echo "$res"; echo; \
echo '==> Fetch from remote repo and merge/rebase'; git pull --rebase; echo; \
echo "$res" | grep -q '^No local changes to save' \
|| { echo '==> Apply stashed changes'; git stash pop; }"
[user]
name = Philip Mueller
email = [email protected]
[color]
ui = true
[push]
default = current
[mergetool]
prompt = false
[merge]
tool = labeled-meld
[mergetool "labeled-meld"]
cmd = /usr/bin/meld --output $MERGED \
$LOCAL --label 'current branch' \
$BASE --label 'common base (and result file)' \
$REMOTE --label 'to be merged' \
2>/dev/null
trustExitCode = false