-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitconfig
92 lines (75 loc) · 2.43 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
[core]
excludesfile = ~/.gitignore_global
editor = vim
autocrlf = input
[alias]
branches = branch -a
brs = branch -a
br = branch
remotes = remote -v
rems = remote -v
rem = remote
stashes = stash list
sts = stash list
sta = stash
tags = tag
showf = show --first-parent
showm = show -m
summary = show --summary
sum = show --summary
sumff = show --summary --format=fuller --show-signature
st = status
slog = log --boundary --oneline
slogm = log --boundary --oneline master..
mlog = log --boundary --format=format:'%C(yellow)%h %C(white)%s %Cgreen(%ar by %an) %Cred%d'
mlogm = log --boundary --format=format:'%C(yellow)%h %C(white)%s %Cgreen(%ar by %an) %Cred%d' master..
unstage = reset -q HEAD --
discard = checkout --
uncommit = reset --mixed HEAD~
amend = commit --amend
sign = commit -S --amend --no-edit
co = checkout
fetchp = fetch --prune
pullp = pull --prune
pushf = push --force-with-lease
desc = describe --tags --long --always --dirty
hgrep = log --branches --remotes --tags --format=format:'%h' -i --grep
slogg = log --branches --remotes --tags --oneline -i --grep
mlogg = log --branches --remotes --tags --format=format:'%C(yellow)%h %C(white)%s %Cgreen(%ar by %an) %Cred%d' -i --grep
showg = "!f() { git show `git hgrep \"$1\"`; }; f"
showfg = "!f() { git show --first-parent `git hgrep \"$1\"`; }; f"
showmg = "!f() { git show -m `git hgrep \"$1\"`; }; f"
sumg = "!f() { git show --summary `git hgrep \"$1\"`; }; f"
descg = "!f() { git describe --tags `git hgrep \"$1\"`; }; f"
nevermind = !git reset --hard HEAD && git clean -d -f
nvm = !git reset --hard HEAD && git clean -d -f
graph = log --graph -100000 --branches --remotes --tags --format=format:'%Cgreen%h %Creset %<(75,trunc)%s (%aN, %ar) %Cred%d'
graph2 = log --graph -100000 --branches --remotes --tags --format=format:'%Cgreen%h %Creset %<(75,trunc)%s (%aN, %ar) %Cred%d' --date-order
precommit = diff --cached --diff-algorithm=minimal -w
[merge]
tool = vimdiff
conflictstyle = diff3
[mergetool]
prompt = false
[pull]
rebase = merges
; rebase = preserve ; for older git.
[push]
default = simple
[rebase]
autoStash = true
[diff]
color = true
renames = copies
[rerere]
enabled = true
[commit]
#gpgsign = true
[user]
#name = Patrick Chin
#email = [email protected]
#signingkey = 58A0C0DF
[url "https://github.com/"]
insteadOf = gh:
[url "https://gitlab.com/"]
insteadOf = gl: