-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgitconfig.ini
More file actions
25 lines (25 loc) · 935 Bytes
/
gitconfig.ini
File metadata and controls
25 lines (25 loc) · 935 Bytes
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
[alias]
add-without-whitespace = !sh -c 'git diff --unified=0 --ignore-all-space "$@" | git apply --cached --unidiff-zero -'
to-ssh = !git remote set-url origin $(git remote get-url origin | sed s+https://+git@+ | sed s+/+:+)
prompt = !git symbolic-ref HEAD --short 2>/dev/null
top-committers = "!_() { \
git shortlog -sn --no-merges | head -n${1:-10}; \
}; _"
alias = "--list-cmds=alias"
configs = "help --config"
commit-empty = commit --allow-empty-message -m ''
pullpush = "!git pull && git push"
sha="!git log --color --format='%C(yellow)%h %C(white)- %s' | fzf --ansi --reverse --no-sort --delimiter=- --preview='git show --color {1}' --accept-nth=1"
[init]
defaultBranch = master
[include]
path = ~/.gitconfig_private
[pull]
rebase = true
[commit]
verbose = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true