-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathgitconfig
104 lines (88 loc) · 2.34 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
[user]
# name = Ali Mihandoost
# email = [email protected]
[alias]
a = add -v .
c = commit -vm
ca = commit -vam
cl = clone -v
cl1 = clone -v --depth=1
pl = pull -v --prune --progress --autostash --rebase=true
plm = pull -v --prune --progress --autostash --rebase=false
p = push -v
pp = push -v --prune
pa = push -v --all
pt = push -v --tags
b = branch -v
ba = branch -avv
bd = push origin --delete
td = !"git tag --delete $1; git push -v origin --delete $1 #"
s = status -vs
st = stash -u
sp = stash pop
m = merge
r = rebase
rc = rebase --continue
ra = rebase --abort
rs = rebase --skip
co = checkout
rh = reset --hard
sw = switch
f = fetch -v
chp = cherry-pick -v
d = diff --color --color-words --abbrev
rn = !"git pl && git rebase origin/${1:-next} && git push -f #"
feat = !"git fetch && git switch -c feat/$1 origin/next && git push -u #"
sep = !"git fetch && git switch -c feat/$1 origin/next && shift && git cherry-pick $@ && git push -u && gh pr create --assignee @me --base next --fill --web #"
l = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
# Show the diff between the latest commit and the current state
df = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat"
ru = rebase-update # depot_tools specific
t = tag -ln3
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
[help]
autocorrect = 1
[push]
default = current
[pull]
rebase = false
# so much color
# [color]
# ui = always
[color "diff"]
meta = yellow bold
commit = green bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = "red bold 52"
newNormal = "green bold"
newHighlight = "green bold 22"
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "status"]
added = yellow
changed = green
untracked = cyan
# [http]
# sslVerify = false
# [credential]
# helper = manager
[core]
autocrlf = input
[init]
defaultBranch = main
# [commit]
# gpgsign = true
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f