forked from marcelbeumer/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
51 lines (51 loc) · 1.29 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
[color]
ui = true
[user]
name = Marcel Beumer
email = [email protected]
[alias]
#
[http]
# proxy = http://tst-proxy:8888
[credential]
helper = osxkeychain
; [pull]
; # always add --rebase flag when pulling to avoid useless merges
; rebase = true
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[core]
excludesfile = /Users/marcel/.gitignore_global
[grep]
extendRegexp = true
lineNumber = true
[alias]
ack = grep --break --heading --line-number
st = status
l = pull
lr = pull --rebase
f = fetch
up = fetch && git rebase
un = reset HEAD --
p = push
c = commit -v
ca = commit -v -a
co = checkout
cm = checkout master
b = branch
ba = branch -a
cp = cherry-pick
lg = log --stat --max-count=5
lgg = log --graph --max-count=5
lp = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr by %an)%Creset' --abbrev-commit --date=relative
ss = status -s
a = add
ar = !git add . && git ls-files --deleted | xargs git rm
m = merge
rh = reset HEAD
rhh = reset HEAD --hard
pick = cherry-pick