-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
88 lines (72 loc) · 1.84 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
82
83
84
85
86
87
88
[include]
path = ~/.gitconfig.local
[alias]
a = add
br = branch -vv
c = commit --verbose
ca = commit --amend --verbose
co = checkout
cob = checkout -b
co-pr = !sh -c 'git fetch upstream pull/$1/head:pr/$1 && git checkout pr/$1' -
d = diff
dc = diff --cached
dlb = branch --delete # delete local branch
drb = push --delete # delete remote branch
fo = fetch origin
rom = rebase -i origin/master
fu = fetch upstream
r = remote -v
rum = rebase -i upstream/master
l = log --pretty=format:'%Cred%h%Creset %C(yellow)%d%Creset %C(bold)%s%Creset %Cgreen[%an]%Creset' --abbrev-commit --all --decorate --color
ll = log --pretty=format:'%Cred%h%Creset %C(bold)%s%C(yellow)%d%Creset %C(green)[%an]%Creset%n%n%B' --abbrev-commit --all --decorate --color --date=short
lll = log --pretty=format:'%Cred%H%Creset %s %C(yellow)[%ad]%Creset %C(green)[%an]%Creset%n %D' --abbrev-commit --all --decorate --color --date=short -p
po = push origin
pf = push --force-with-lease
rs = reset HEAD
s = status -sb
rebase = rebase -i
undo = reset HEAD~1 --mixed
wip = commit -am "WIP"
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[color "diff-highlight"]
oldNormal = "red bold"
oldHighlight = "red bold 52"
newNormal = "green bold"
newHighlight = "green bold 22"
[core]
editor = vim
[push]
default = current
[diff]
tool = vimdiff
mnemonicprefix = true
renames = copies
[difftool]
prompt = false
[url "[email protected]:"]
insteadOf = https://gitlab.com/
[credential]
helper = cache
[merge]
tool = vimdiff
conflictstyle = diff3
[mergetool]
prompt = false
[gc]
auto = 0
[remote]
pushdefault = origin