-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
32 lines (29 loc) · 835 Bytes
/
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
[core]
editor = vim
[merge]
tool = vimdiff
[color]
ui = true
[alias]
br = branch -a
brloc = !git branch -vv | cut -c 3- | awk '$3 !~/\\[/ { print $1 }' # non-tracking local branches
brd = branch -D
brdR = push origin --delete # delete remote branch
s = status -u -s
st = status
ci = commit
co = checkout
cob = checkout -b
redocommit = reset --soft HEAD^
unstage = reset -- HEAD
pl = pull
ph = push
lg = log -p --graph
l1 = log --oneline --decorate
l2 = log --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
[include]
path = .gitconfig.local
[push]
default = simple
[submodule]
recurse = true