-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitconfig
103 lines (79 loc) · 1.91 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
[user]
name = Daniel Magnusson
email = email
[github]
user = danielmagnussons
[core]
autocrlf = input
filemode = false
editor = 'C:/Program Files/Sublime Text 2/sublime_text.exe' --wait
excludesfile = ~/.gitignore_global
[alias]
st = status
ci = commit
br = branch
co = checkout
df = difftool
pr = pull --rebase
undo = reset --soft HEAD^
# Switch to a branch, creating it if necessary
go = checkout -B
l = log --pretty=oneline -n 20 --graph
lg = log -p
last = log -1 HEAD
tree = log --graph --oneline --decorate=full --color=always --branches
find = log -i --pretty=\"format:%Cgreen%H %Cblue%s\" --name-status --grep
# Show the diff between the latest commit and the current state
d = !"git diff-index --quiet HEAD -- || clear; git diff --patch-with-stat"
# Show verbose output about tags, branches or remotes
tags = tag -l
branches = branch -a
remotes = remote -v
[help]
browser = open
[pull]
rebase = true
[difftool]
prompt = false
[difftool "bc3"]
path = "C:/Program Files (x86)/Beyond Compare 3/BCompare.exe"
[diff]
tool = bc3
prompt = false
external = gitdiff-all.sh
[mergetool "bc3"]
prompt = false
path = C:/Program Files (x86)/Beyond Compare 3/BCompare.exe
[merge]
tool = bc3
[branch]
autosetuprebase = always
[gerrit]
createchangeid = true
# Colors
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
# URL shorteners
[url "[email protected]:"]
insteadOf = "gh:"
pushInsteadOf = "github:"
pushInsteadOf = "git://github.com/"
[url "git://github.com/"]
insteadOf = "github:"
[url "[email protected]:"]
insteadOf = "gst:"
pushInsteadOf = "gist:"
pushInsteadOf = "git://gist.github.com/"
[url "git://gist.github.com/"]
insteadOf = "gist:"