-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
43 lines (41 loc) · 1.43 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
[user]
email = [email protected]
name = Mycha
[includeIf "gitdir:~/projects/xcom/**"]
path = ~/projects/xcom/.gitconfig
[alias]
bw = blame -w -M
c = commit
b = rev-parse --abbrev-ref HEAD
commend = commit --amend --no-edit
cc = commit --all --amend --no-edit
ca = commit --all
co = checkout
cb = "!f() { git checkout `git log --until=\"$*\" -1 --format=%h`; } ; f"
s = status --short
d = diff
dc = diff --cached --word-diff=color
dw = diff --word-diff=color
l = log
a = add
af = add -f
au = add -u # stages modified and deleted, without new
p = push
pf = push -f # force push, useful after using rebase
ss = show -1 --format=%B--stat
sw = show -1 --format=%B--stat --word-diff=color
whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short
lg = log --graph --pretty=format:'%Cred%h%Creset %C(yellow)%an%d%Creset %s [%N] %Cgreen(%ar)%Creset' --date=relative
lgd = log --graph --pretty=format:'%Cred%h%Creset %C(yellow)%an%d%Creset %s [%N] %Cgreen(%ar)%Creset' --date=default
lgm = log --graph --pretty=format:'%Cred%h%Creset %C(yellow)%an%d%Creset %s [%N] %Cgreen(%ar)%Creset' --date=relative [email protected]
abbr = "!sh -c 'git rev-list --all | grep ^$1 | while read commit; do git --no-pager log -n1 --pretty=format:\"%H %ci %an %s%n\" $commit; done' -"
[color]
ui = auto
[branch]
autosetuprebase = remote
[push]
default = simple
[fetch]
prune = true
[pull]
rebase = true