-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitconfig
56 lines (49 loc) · 1.37 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
[user]
name = "Harvey Tuch"
email = [email protected]
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = auto
pager = true
[alias]
fm = !"git format-patch $1^..$1"
dm = diff master
co = checkout
rc = rebase --continue
br = branch -v
st = status -s
wc = whatchanged -p
rb = rebase
cm = commit
cs = changeset
cp = cherry-pick
sh = show HEAD
gr = grep -p -n -5 --break
a = commit -a --amend
c = commit -am
d = diff
l = log --oneline --decorate --graph
lm = log --oneline --decorate master..HEAD
sync = !"CURRENT_BR=`git branch | sed -e '/^[^*]/d' -e 's/* \\(.*\\)/\\1/'` && git co master && git pull && git co $CURRENT_BR && git rebase master"
nuke = !"CURRENT_BR=`git branch | sed -e '/^[^*]/d' -e 's/* \\(.*\\)/\\1/'` && git co master && git pull && git br -d $CURRENT_BR"
submit = push origin HEAD:master
[push]
default = tracking
[color]
ui = auto
[color "branch"]
current = yellow bold
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