-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
82 lines (72 loc) · 2.15 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
# [user]
# name = First Last
# email = flast@email.com
[color]
branch = auto
diff = auto
interactive = auto
status = auto
[alias]
st = status
s = status -sb
ad = add -NA :/
ci = commit
cam = commit -am
br = branch
co = checkout
sh = show -U2
df = diff -U2
dt = difftool
lg = log -p
lgr = log --pretty=format:'%C(cyan bold)%h%C(blue bold)%d %Creset%s (%C(green bold)%an%Creset, %C(yellow bold)%ad%Creset)' --graph --date=iso
lgn = log --pretty=format:'%C(cyan bold)%h%C(blue bold)%d %Creset%s (%C(green bold)%an%Creset, %C(yellow bold)%ad%Creset)' --graph --date=iso --no-merges
lgg = log --pretty=format:'%C(cyan bold)%h %C(blue bold)%s' --graph --date=iso --no-merges
lgh = "!lgh() { git lgg | head -${1:-12}; }; lgh"
shl = "!shl() { git lgh | head -n1 | awk '{print $2}' | xargs git show -U2; }; shl"
fo = fetch origin
po = push origin HEAD:refs/for/master
am = commit --amend
aam = commit -a --amend
rbm = rebase origin/master
pd = push origin HEAD:refs/for/develop
rbd = rebase origin/develop
rbi = "!git rebase -i --rebase-merges HEAD~$1 #"
sp = stash pop
smu = submodule update --init
smur = submodule update --init --recursive
smeach = submodule foreach
ffs = flow feature start
fff = flow feature finish
fhs = flow hotfix start
fhf = flow hotfix finish
[core]
editor = nvim
# [pager]
# diff = delta
# log = delta
# reflog = delta
# show = delta
#
# [interactive]
# diffFilter = delta --color-only
#
# [delta]
# features = side-by-side line-numbers decorations
# whitespace-error-style = 22 reverse
#
# [delta "decorations"]
# commit-decoration-style = bold yellow box ul
# file-style = bold yellow ul
# file-decoration-style = none
[diff]
context = 2
[credential]
helper = cache --timeout=604800
#[tig]
# show-date = yes # Show commit date?
# author-width = 10 # Set width of the author column
# line-graphics = utf-8 # Enable graphics characters
# tab-size = 4 # Number of spaces per tab
# vertical-split = yes
[push]
default = simple