-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
101 lines (100 loc) · 2.9 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
[alias]
a = add
aa = add --all
amend = commit --amend --reset-author
authors = !git log --all --format='%cN <%cE>' | sort -u
b = branch
ba = branch -a
bd = branch -d
bdf = branch -D
bm = branch -m
bn = checkout -b
br = branch -r
c = commit
ca = commit -a -m
cat = !cat
cb = rev-parse --abbrev-ref @
cl = clone
cln = !git clean -dfnx -e /.idea/ && echo 'Are you sure?' && read _ && git clean -dfx -e /.idea/
clr = checkout @ -- .
cm = commit -m
co = checkout
contains = branch --contains
cp = cherry-pick
cpa = cherry-pick --abort
d = diff
date = !date
dc = diff --cached
del = push --delete origin
discard = !git reset @ -- . && git checkout @ -- .
ds = diff stash@{0}
f = fetch --all --prune
fa = fame --by-type
hash = rev-parse --short @
i = !ssh-add
ignore = update-index --assume-unchanged
ignored = !git ls-files -v | grep "^[[:lower:]]"
unignore = update-index --no-assume-unchanged
l = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
less = !less -R
lm = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)' --abbrev-commit --author='Łukasz Wieczorek' --date=relative
lo = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -1
ls = log --graph --oneline --decorate
m = merge
ma = merge --abort
merged = branch --merged
mm = merge --no-ff
msg = log -n 1 --pretty=format:%s
notmerged = branch --no-merged
p = push
patch = show -p
pf = push --force-with-lease
ps = push -o ci.skip
psf = push -o ci.skip --force-with-lease
pt = push --tags
pu = pull
pul = pull .
pur = pull --rebase
r = !rm -fr
ra = rebase --abort
rc = rebase --continue
restore = checkout @ --
ri = rebase --interactive --rebase-merges
rst = reset
rstf = "!f() { HEAD=`git rev-parse --abbrev-ref @`; git reset --hard \"origin/${HEAD}\"; }; f"
s = status
st = stash
sta = stash apply --index
stand = standup -a 'all'
stats = diff --stat
std = stash drop
stl = stash list
stp = stash pop
sts = stash save
stua = !git stash show -p | git apply -R
td = tag -d
undo = reset --soft @~1
unresolve = checkout --conflict=merge
up = !git add --all && git commit --amend --no-edit && git push --force -o ci.skip
upstream = "!f() { HEAD=`git rev-parse --abbrev-ref @`; git branch --set-upstream-to=origin/$HEAD $HEAD; }; f"
vi = !vi
# Commands using shortcuts
staging = !git co staging && git pul main && git pb && git co -
[core]
autocrlf = false
eol = lf
fileMode = false
quotePath = false
precomposeunicode = true
[include]
path = ~/.gituser
path = ~/.gitlocal
[push]
default = current
[init]
defaultBranch = main
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true