-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
34 lines (34 loc) · 1.2 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
[core]
excludesfile = ~/.gitignore
[alias]
aliases = "!f(){ git config --get-regexp '^alias\\.' | sed -e 's/^alias\\.//' -e 's/ / = /'; }; f"
permission-reset = "!f(){ git diff -p -R | grep -E \"^(diff|(old|new) mode)\" | git apply; }; f"
graph = log --oneline --decorate --all --graph
sdiff = diff --ignore-space-at-eol -b -w --ignore-blank-lines
tracked = "!f(){ git -C \"$GIT_PREFIX\" ls-tree -r HEAD --name-only \"${@:-$PWD}\"; }; f"
untracked = "!f(){ git -C \"$GIT_PREFIX\" ls-files --others --exclude-standard \"$@\"; }; f"
ignored = "!f(){ git -C \"$GIT_PREFIX\" status --short --ignored \"$@\" | grep \"^!!\"; }; f"
hide = update-index --skip-worktree
unhide = update-index --no-skip-worktree
hidden = "!f(){ git -C \"$GIT_PREFIX\" ls-files -v \"${@:-$PWD}\" | grep \"^[S[:lower:]]\"; }; f"
root = rev-parse --show-toplevel
[push]
default = simple
[pull]
ff = only
[credential]
helper = /usr/share/git/credential/gnome-keyring/git-credential-gnome-keyring
[user]
email = [email protected]
name = Jeremiah Menétrey
[log]
abbrevCommit = true
[diff]
noprefix = true
wsErrorHighlight = all
[diff "archive"]
# Assumes 7zip is installed
textconv = 7z -so e
binary = true
[init]
defaultBranch = main