-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
120 lines (118 loc) · 3.55 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
112
113
114
115
116
117
118
119
120
[alias]
addAllModified="!f() { git st | grep modified | tr -s '\t' ' ' | tr -s ' ' | rev | cut -d' ' -f1 | rev | sort | uniq | ( while read modifiedFile ; do ( echo \"Adding ${modifiedFile} ...\" ; git add $modifiedFile ) ; done ) && git st ; }; f"
aliases=config --get-regexp ^alias
amend ="!f() { if [ $# -lt 1 ] ; then git commit --amend --no-edit ; else git commit --fixup=amend:$1 ; fi; }; f"
blm=blame -w -M -C
cb=branch --show-current
ci=commit
cl = "!f() { git push origin HEAD:refs/for/${1:-main}; }; f"
co=checkout
committed= !git show --pretty=\"\" --stat
cp=cherry-pick --allow-empty
cpa=cherry-pick --abort
cpc=cherry-pick --continue
cps=cherry-pick --skip
curbranch=branch --show-current
delbranch=branch -D
delremote=branch -D --remote
diffminimal= ! git diff | grep -e '^\\(+\\|-\\)'
difftool=difftool -y
dirty= !git diff --pretty=\"\" --stat
dt=difftool -g
fa=fetch --all
ff="!f() { git fetch --all ; git pull --ff ; }; f"
fixup=commit --fixup
graph = log --all --graph --decorate --oneline
l100=log --oneline --decorate=full -100
l10=log --oneline --decorate=full -10
l120=log --oneline --decorate=full -120
l15=log --oneline --decorate=full -15
l1=log --oneline --decorate=full -1
l20=log --oneline --decorate=full -20
l25=log --oneline --decorate=full -25
l30=log --oneline --decorate=full -30
l35=log --oneline --decorate=full -35
l40=log --oneline --decorate=full -40
l45=log --oneline --decorate=full -45
l50=log --oneline --decorate=full -50
l55=log --oneline --decorate=full -55
l5=log --oneline --decorate=full -5
l60=log --oneline --decorate=full -60
l65=log --oneline --decorate=full -65
l70=log --oneline --decorate=full -70
l75=log --oneline --decorate=full -75
l80=log --oneline --decorate=full -80
l90=log --oneline --decorate=full -90
l=log --oneline --decorate=full -5
last=log -1 --decorate=full
loselast=reset --hard HEAD~1
ls=branch -l
lsremote=branch -l --remote
new=switch -c
prev=switch -
pushbranch=push -u origin
pushthis=!git push -u origin $(git branch --show-current)
put=pushthis
r=rebase
ra=rebase --abort
rc=rebase --continue
rearrange=rebase -i HEAD~10
remaining=rebase --edit-todo
remotebranches="!f() { git branch -l --remote | grep $USER; }; f"
renamebranch=branch -m
reword="!f() { if [ $# -lt 1 ] ; then git commit --amend --only ; else git commit --fixup=reword:$1 ; fi; }; f"
ri=rebase --interactive
rs=rebase --skip
st-all=status -unormal
st=status -uno
staged= !git diff --pretty=\"\" --stat --cached
strip=reset --hard
uncommitted= !git diff --pretty=\"\" --stat
undo=restore --source=HEAD
unpacklast=reset --soft HEAD~1
unstage=restore --staged
up=checkout
upload=put
vimdiff=difftool
[user]
email = [email protected]
name = Nitin Garg
[core]
editor = vim
[pull]
rebase = true
[rebase]
autosquash = true
autoStash = true
updateRefs = true
[diff]
guitool = bc
tool = vim
[difftool]
prompt = false
[difftool "bc"]
cmd=/usr/bin/bcompare -expandall -solo \"$LOCAL\" \"$REMOTE\"
trustExitCode = true
[difftool "vim"]
cmd=/usr/bin/vimdiff \"$LOCAL\" \"$REMOTE\"
trustExitCode = true
[merge]
tool = bc
[mergetool]
vimdiff=difftool
keepBackup = false
[mergetool "bc"]
trustExitCode = true
[credential "https://github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
[http]
cookiefile = /usr/local/google/home/gargnitin/.gitcookies
[url "sso://codelab/"]
insteadOf = https://codelab.googlesource.com/
insteadOf = https://codelab-review.googlesource.com/
insteadOf = http://codelab.googlesource.com/
insteadOf = http://codelab-review.googlesource.com/
[credential "https://gist.github.com"]
helper =
helper = !/usr/bin/gh auth git-credential