-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_gitconfig
More file actions
51 lines (51 loc) · 1.41 KB
/
Copy pathdot_gitconfig
File metadata and controls
51 lines (51 loc) · 1.41 KB
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
[include]
path = .gitconfig.local
[core]
pager = delta
hooksPath = /home/paranoidi/.git-hooks
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true # use n and N to move between diff sections
dark = true # or light = true, or omit for auto-detection
[diff]
colorMoved = default
[merge]
tool = vim
conflictstyle = diff3
[color]
ui = true
[pull]
rebase = true
[push]
default = current
[init]
defaultBranch = main
[log]
date = iso
[apply]
# remove trailing whitespaces
whitespace = fix
[alias]
ci = commit
st = status
lc = log ORIG_HEAD.. --stat --no-merges
co = checkout
lgo = log --decorate --stat --graph
inc = "!git remote update -p; git log ..@{u}"
out = log @{u}..
lg = log --color --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit
fixup = "!f() { TARGET=$(git rev-parse $1); shift; git commit --fixup=$TARGET \"$@\" && GIT_SEQUENCE_EDITOR=true git rebase -i --autostash --autosquash $TARGET^; }; f"
stash-staged = stash --staged
stash-unstaged = stash --keep-index
[credential "https://github.com"]
helper = !~/.local/share/mise/shims/gh auth git-credential
[credential "https://gist.github.com"]
helper = !~/.local/share/mise/shims/gh auth git-credential
[mergetool]
prompt = false
[commit]
verbose = true
[rebase]
autoStash = true
updateRefs = true