-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
65 lines (63 loc) · 2.31 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
[user]
name = Nyctef
email = [email protected]
[alias]
lg = log --graph --abbrev-commit --decorate --date=relative --format=format:'%h%C(reset) - %C(bold green)(%ar)%C(reset) %s%C(reset) %C(bold green)- %an%C(reset)%C(bold yellow)%d%C(reset)'
lg1 = !git lg -1
lga = !git lg --all
st = status --untracked-files=all
ci = commit --verbose
cia = commit --verbose -a
cip = commit --verbose -p
di = diff --color-words
dc = diff --cached --color-words
amend = commit --amend
fa = fetch --all
fap = fetch --all --prune
fomm = fetch origin master:master
fom = fetch origin main:main
fo = !git fetch origin $*:$*
fast = !git fa && git st
dt = difftool --dir-diff
dlast = diff HEAD^ HEAD --color-words
out = !git fetch && git lg FETCH_HEAD..
outgoing = !git fetch && git lg FETCH_HEAD..
in = !git fetch && git lg ..FETCH_HEAD
incoming = !git fetch && git lg ..FETCH_HEAD
outin = !git fetch && echo 'out:' && git lg FETCH_HEAD.. && echo 'in:' && git lg ..FETCH_HEAD
aa = add -A
addw = !bash -c 'git diff -b | git apply --ignore-whitespace --cached'
co = checkout
cob = checkout -b
p = pull --ff-only
puom = !git push -u origin `git rev-parse --abbrev-ref HEAD`
wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard
purge = clean -d -x -f
ama = !git amend -a --no-edit
rhard = reset --hard
prebase = pull --rebase
oneline = log --pretty=oneline --abbrev-commit
# delete-old-branches = !git branch -D `git branch --merged | grep -v '\*\|master' `
ignore-changes-to = update-index --assume-unchanged
branch-status = for-each-ref --format='%(refname:short) %(color:bold green)%(push:track)' refs/heads
delete-gone-branches = !git branch-status | grep gone | cut -f 1 -d ' ' | xargs git branch -D
brst = !git branch-status
unmerged-files = !git st --porcelain | grep UU | cut -c 4-
unstage = reset HEAD
fix-master = update-ref refs/heads/master origin/master HEAD
ch = cherry-pick
rcon = rebase --continue
force-push = push --force-with-lease
rhu = reset --hard @{upstream}
mt = mergetool
delete-branch = !"f() { git branch -D $@; git push origin --delete $@; }; f"
[filter "media"]
clean = git media clean %f
smudge = git media smudge %f
required = true
[push]
default = simple
[core]
editor = gvim
whitespace = cr-at-eol
autocrlf = false