-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
39 lines (39 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
32
33
34
35
36
37
38
39
[user]
name = Jordan McCoy
email = mccoy.jordan@gmail.com
editor = vim
[core]
excludesfile = ~/.gitignore
[push]
default = current
[color]
pager = true
ui = auto
[alias]
ad = add
ai = add --interactive
au = add -u
bn = branch
ci = commit
cl = clone
cm = commit -m
co = checkout
df = diff
dc = diff --cached
ft = fetch
last = "!f() { git cat-file commit HEAD $@ | git name-rev --stdin; }; f"
la = "!git config -l | grep alias | cut -c 7-"
lc = log ORIG_HEAD.. --state --no-merges
lg = log --pretty=format:'%C(magenta bold)%h %Creset%C(blue)%cr %C(yellow)%s%C(blue bold)%d %Creset%C(green)[%an]%Creset' --graph
ll = log --pretty=format:'%C(magenta bold)%h %Creset%C(blue)%cr %C(yellow)%s%C(blue bold)%d %Creset%C(green)[%an]%Creset' --stat
lp = log --pretty=format:'%C(yellow bold)%s%Creset%n%C(magenta)%h %C(blue)%cr %C(blue bold)%d %Creset%C(green)[%an]%n' -p
ph = !git push origin `git symbolic-ref HEAD`
pl = pull
pu = push
sl = stash list
sp = stash pop
ss = stash save
st = status -s
whois = "!sh -c 'git log -i -1 --pretty=\"format:%an <%ae>\n\" --author=\"$1\"' -"
[tig]
line-graphics = ascii