-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
81 lines (74 loc) · 1.74 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
[color]
interactive = auto
ui = auto
branch = auto
diff = auto
status = 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 "sh"]
branch = yellow reverse
workdir = blue bold
dirty = red
[user]
email = me@ctizen.dev
name = Oleg Klimenko
[alias]
f = tag -d testing && fetch
tomaster = fetch && rebase -f remotes/origin/master
upload = !bash -c 'BRNCH=`git rev-parse --abbrev-ref HEAD` && git push origin $BRNCH'
reupload = !bash -c 'BRNCH=`git rev-parse --abbrev-ref HEAD` && read -p \"Recreating branch $BRNCH. Continue? (y/n) \" && [[ "$REPLY" == "y" ]] && git push origin :$BRNCH && sleep 3 && git push origin $BRNCH'
b=branch
c=checkout
k=cherry-pick
l=log --pretty=oneline --abbrev-commit
r=remote
s=commit --dry-run --short
pu=push
e=edit
# add and the staging area
a=add
aa=add --update # mnemonic: "add all"
stage=add
ap=add --patch
p=diff --cached # mnemonic: "patch"
unstage=reset HEAD
# commits and history
ci=commit
ca=commit --all
amend=commit --amend
n=commit --amend
k=cherry-pick
re=rebase --interactive
rc=rebase --continue
ra=rebase --abort
mt=mergetool
pop=reset --soft HEAD^
peek=log -p --max-count=1
# fetch
f=fetch --prune
pm=pull # mnemonic: pull merge
pr=pull --rebase # mnemonic: pull rebase
po=push origin push_origin
# diff
d=diff
ds=diff --stat # mnemonic: "diff stat"
# reset
hard=reset --hard
soft=reset --soft
scrap=checkout HEAD
rm=rm
mv=mv
[merge]
conflictstyle = diff3