-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gitconfig
35 lines (35 loc) · 963 Bytes
/
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
[user]
email = [email protected]
name = Philipp Krones
signingkey = 1CA0DF2AF59D68A5
[commit]
gpgsign = true
[core]
excludesfile = /home/pkrones/.gitignore
[url "[email protected]:"]
pushInsteadOf = https://github.com/
[branch]
sort = -committerdate
[rebase]
updateRefs = true
[rerere]
enabled = true
autoupdate = true
[alias]
corig = clean **/*.orig *.orig -f
wip = commit -a -m "WIP"
pushfwl = push --force-with-lease --force-if-includes
drop = "!f() { git reset --keep HEAD~${1:-1}; }; f"
resorig = "!f() { git reset --keep $(git rev-parse --abbrev-ref --symbolic-full-name @{u}); }; f"
canpf = "!f() { git commit --amend --no-edit && git pushfwl; }; f"
cpsha = "!f() { git log -1 --format=%H | xclip -selection c; }; f"
gone = gone
rad = rad
unwip = unwip
[maintenance]
repo = /home/pkrones/rust-lang/rust-clippy
repo = /home/pkrones/rust-lang/rust
[includeIf "gitdir:~/recogni/"]
path = ~/recogni/.gitconfig
[diff]
colorMoved = zebra