-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
46 lines (46 loc) · 1.51 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
# vim: set filetype=gitconfig :miv #
# [include]
# path = $HOME/path/to/this/file
[core]
editor = nvim -f
excludesfile = .gitignore.local
[commit]
# Sign commits by default
gpgSign = true
[diff]
tool = vimdiff
guitool = gvimdiff
[difftool]
confirm = false
prompt = false
[merge]
tool = vimdiff
[push]
default = nothing
[alias]
adog = log --all --decorate --oneline --graph --date-order
dog = log --decorate --oneline --graph --date-order
fadd = "! git pick | xargs --open-tty git add"
fig = "! git pick | xargs -L1 git ignore"
faddall = "! git pick --untracked | xargs --open-tty git add"
fixup = "!git commit --patch --no-edit --amend $(git diff --name-only HEAD~1..HEAD)"
h = log -1 --format=%h
hash = log -1 --format=%H
head = log -1 --show-signature --format=fuller
identity = "! git config user.name \"$(git config user.$1.name)\"; git config user.email \"$(git config user.$1.email)\"; git config commit.gpgSign \"$(git config user.$1.gpgSign)\"; :"
root = rev-parse --show-toplevel
stat = log --oneline --stat --date-order
task = "! TASKDATA=$(git rev-parse --show-toplevel)/.git/task task"
time = "! TIMEWARRIORDB=$(git rev-parse --show-toplevel)/.git/time timew"
track = add --intent-to-add
treh = ! git status --porcelain | sed -e 's/^\\(..\\) \\(.*\\)$/\\2 (\\1)/' | treh --stdin
ts = timeshift
reword = commit --amend --no-verify
[user]
useConfigOnly = true
[user "darkwiiplayer"]
# Public identity for Github & co.
name = DarkWiiPlayer
email = [email protected]
[init]
defaultBranch = main