-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_gitconfig
92 lines (88 loc) · 2.95 KB
/
dot_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
;/* vi: set filetype=gitconfig: */
[user]
email = [email protected]
name = Kevin Pham
; GPG key
signingkey = F7A418BDB8DB38E3
[includeIf "gitdir:~/apps/"]
path = .gitconfig.work
[push]
recurseSubmodules = check
[alias]
rehash = "!f() { \
echo \"Going for $1\"; \
$HOME/work/lucky-commit/target/release/lucky_commit $1; \
git log -1 --show-signature; \
}; f"
s=status
b=branch
out=log origin/master.. --pretty='format:%C(auto)%h %<(72,trunc)%s | %ar'
a=!git-add
in=!git fetch && git log ..origin/master --pretty='format:%C(auto)%h [%<(7,trunc)%cn] %<(72,trunc)%s | %ar'
outs=!git out --stat
ins=!git in --stat
out-summary=log origin/master.. --pretty='format: %<(72,trunc)%s'
co=checkout
uncommit=reset HEAD^
rename=branch -m
cp=cherry-pick
cpc=!ctrl cp-confirm
cl=!ctrl sparsey
pushh=!git push --set-upstream origin $(git branch --show-current)
remote-delete-branch=push origin --delete
lg=log --color=always --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lge=log --color=always --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%ae>%Creset' --abbrev-commit
lgs=log --format='%C(auto) %h %s'
hs=log --color=always --pretty='%C(yellow)%h %C(cyan)%cd %Cblue%aN%C(auto)%d %Creset%s' --graph --date=relative --date-order
hse=log --color=always --pretty='%C(yellow)%h %C(cyan)%cd %Cblue%ae%C(auto)%d %Creset%s' --date=relative --date-order
psychic=!ctl --psychic
; Does a clean with all the standard params, but keeps the config.php file if present
cleann=clean -dfxx -e config.php
submodule-branch-check=!ctrl submodule-branch-check
; Adds the plugin to submodules
add-plugin = "!f() { \
git add `ctrl plugin-find $1`; \
}; f"
plugin-add = add-plugin
ap = add-plugin
; Does git operations at the plugin directory level
plugin = "!f() { \
pluginpath=`ctrl plugin-find $1`; \
cd $pluginpath; \
git $2 $3 $4 $5 $6 $7 ; \
}; f"
; Really wanted to use variable expansion instead but it wouldn't work, I'm probably doing something wrong:
; e.g. git \"${@:2}\"; \
oldest-ancestor=!bash -c 'diff --old-line-format='' --new-line-format='' <(git rev-list --first-parent "${1:-master}") <(git rev-list --first-parent "${2:-HEAD}") | head -1' -
curious = blame
;
[commit]
gpgsign = true
[tag]
gpgsign = true
[rerere]
enabled = true
autoupdate = true
[safe]
directory = ~/personal/music
[gpg]
; format = ssh
[gpg "ssh"]
allowedSignersFile = ~/.ssh/allowed_signers
[init]
defaultBranch = main
[core]
editor = lvim
excludesfile = ~/.gitignore_global
hooksPath = ~/.git_hook
[url "ssh://[email protected]"]
insteadOf = https://github.com
[url "ssh://[email protected]"]
insteadOf = https://gitlab.com
[url "ssh://[email protected]"]
insteadOf = https://bitbucket.org
[protocol "file"]
allow = always
[submodule "files/converter/librelambda"]
url = [email protected]:catalyst/moodle-fileconverter_librelambda.git
ignore = all