-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
41 lines (41 loc) · 1.18 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
[user]
name = Gareth Rees
email = ADD_EMAIL_HERE
[alias]
a = add
ap = add -p
cbr = rev-parse --abbrev-ref HEAD # current branch
cm = commit -v
co = checkout
cp = cherry-pick
d = diff
ds = diff --staged
fo = fetch origin -p
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset %C(blue)(%an <%ae>)%Creset' --abbrev-commit --date=relative
ll = log --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %s %Cblue(%an)%Creset' --decorate --numstat
ls = log --pretty=format:'%Cred%h %Creset%s %Cblue(%an <%ae>)%Creset' -n 15
p = push
po = push origin
r = rebase
rc = rebase --continue
ri = rebase -i
s = stash
sa = stash apply
sl = stash list
sp = stash pop
st = status -s
standup = log --since yesterday --oneline --author ADD_EMAIL_HERE
today = git log --since today --oneline --author ADD_EMAIL_HERE
# search logs for commit ticket number
# e.g. git find #1234
find = "!f() { git log --oneline | grep \"$@\"; }; f"
[pager]
diff = diff-highlight | less
log = diff-highlight | less
show = diff-highlight | less
[color]
ui = true
[core]
excludesfile = ~/.gitignore_global
[rebase]
autosquash = true