-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
88 lines (73 loc) · 2.64 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
[core]
editor = emacs
pager = less
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
eol = lf
excludesfile = .gitignore
[commit]
template = git-commit-template.txt
[user]
name = Seshadri Mahalingam
email = seshadri@berkeley.edu
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
[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
[alias]
br = branch
co = checkout
st = status
ci = commit
ca = commit -a
amend = commit --amend
ri = rebase --interactive --autosquash
ac = commit --amend -C HEAD -a
pr = pull --rebase
w = whatchanged
l = log
lp = log -p
lt = log --topo-order
gl = log --graph
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lgs = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --decorate -n10
lga = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --decorate --all
lgas = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --decorate -n10 --all
com = checkout master
cod = checkout dev
d = diff
dc = diff --cached
ds = diff --stat
dsc = diff --stat --cached
sr = svn rebase
sd = svn dcommit
sf = svn fetch
amendfast = commit --amend -a -C HEAD
af = commit --amend -a -C HEAD
rbc = rebase --continue
rbs = rebase --skip
rba = rebase --abort
searchcommits = "!f() { query=\"$1\"; shift; git log -S\"$query\" \"$@\"; }; f \"$@\""
pub = "!f() { git push -u ${1:-origin} `git symbolic-ref HEAD`; }; f"
meld = difftool --no-prompt
tree = log --graph --all --abbrev-commit --decorate --pretty=oneline
tre = log --graph --all --abbrev-commit --decorate --pretty=oneline -n10
recent = "for-each-ref --sort=-committerdate --format '%1B[0;32m%(objectname:short)%1B[m%09%1B[0;33m%(committerdate)%1B[m%09%1B[0;35m%(refname:short)%1B[m%09%(contents:subject)%09%(upstream)' refs/heads/sesh/ --count 20"
logbranch = "for-each-ref --sort=-committerdate refs/heads/ --format='[%1B[0;31m]%(refname:short)[%1B[m] %(subject)' "
[push]
default = current