-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
111 lines (110 loc) · 3.48 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
[user]
name = Samina Fu
email = [email protected]
[core]
editor = vim
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
[color]
ui = true
[alias]
ad = add --all .
br = branch
bl = blame
chp = cherry-pick
chpa = cherry-pick --abort
chpc = cherry-pick --continue
chbaddg = "!fn(){ echo '/ajax/libs/'$1'/*' >> ~/cdnjs/.git/info/sparse-checkout; git checkout -b $1; mkdir ~/cdnjs/ajax/libs/$1; cd ~/git_repo && git clone $2 && cp $1/package.json ~/cdnjs/ajax/libs/$1; };fn"
chbaddn = "!fn(){ echo '/ajax/libs/'$1'/*' >> ~/cdnjs/.git/info/sparse-checkout; git checkout -b $1; mkdir ~/cdnjs/ajax/libs/$1; cd ~/node_modules && npm i $1 && cp $1/package.json ~/cdnjs/ajax/libs/$1; };fn"
ci = commit -v
cia = commit -v --amend
cim = commit -m
cis = commit -v -S
cias = commit -v --amend -S
cims = commit -m -S
cl = clone
cl1 = clone --depth 1
co = checkout
cob = checkout -b
compl = "!fn(){ git checkout master; git pull $1 master; };fn" # checkout to master and pull to up to date.
complrb = "!fn(){ git checkout master; git pull $1 master; git checkout $2; git rebase master; };fn" # checkout to master and pull to up to date and rebase the branch.
complrbps = "!fn(){ git checkout master; git pull $1 master; git checkout $2; git rebase master; git push $3 $2 -f; };fn" # checkout to master and pull to up to date and rebase the branch.
df = diff
dfc = diff --cached
dfw = diff -w
dfcw = diff --cached -w
dfs = diff --stat --summary
fh = fetch
fhu = fetch upstream
mg = merge
rb = rebase
rba = rebase --abort
rbc = rebase --continue
rbi = rebase -i
rbm = rebase master
rmt = remote
rmtv = remote -v
rmta = remote add
rmtau = remote add upstream
rs = reset
rst = reset
rsh = reset --hard
rv = revert
rvt = revert
pl = pull
plr = pull --rebase
ps = push
sh = stash
sm = submodule
st = status
serve = !git daemon --reuseaddr --verbose --base-path=. --export-all ./.git
lg = log
lgp = log -p
lgpw = log -p -w
lgs = log --stat --summary
lgt = log --abbrev-commit --decorate --graph --color --pretty='format:%C(yellow)%h%Creset% s %C(magenta)%an%Creset %C(green)%ar%Creset'
lgf = log --follow
lgpf = log -p --follow
lgpwf = log -p -w --follow
lgsf = log --stat --summary --follow
lgtf = log --abbrev-commit --decorate --graph --color --pretty='format:%C(yellow)%h%Creset% s %C(magenta)%an%Creset %C(green)%ar%Creset' --follow
pushall = "!fn(){ for a in `git remote`; do git push $a $(git rev-parse --abbrev-ref HEAD); done; };fn"
pullall = "!fn(){ for a in `git remote`; do git pull $a $(git rev-parse --abbrev-ref HEAD); done; };fn"
fetchall = "!fn(){ for a in `git remote`; do git fetch $a; done; };fn"
fetchmulti = "!fn(){ for a in $@; do git fetch $a; done; };fn"
fetchpr = "!fn(){ for a in $@; do git fetch origin pull/$a/head:$a -f; done; };fn"
[push]
# for only push to current branch
default = tracking
[core]
editor = vim
excludesfile = ~/.gitignore_global
preloadindex = true
autocrlf = false
ignorecase = false
fscache = true
[mergetool]
keepBackup = false
[gui]
encoding = utf-8
[i18n]
commitencoding = utf-8
logoutputencoding = utf-8
[help]
autocorrect = 10
[credential]
helper = cache --timeout=600
[branch "master"]
rebase = true
[branch "dev"]
rebase = true
[branch]
autosetuprebase = always
[url "[email protected]:"]
#insteadOf = git://github.com/
#insteadOf = http://github.com/
#insteadOf = https://github.com/
[grep]
lineNumber = true
[diff]
compactionHeuristic = true