-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_gitconfig
More file actions
46 lines (46 loc) · 1.24 KB
/
dot_gitconfig
File metadata and controls
46 lines (46 loc) · 1.24 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
[include]
path = .gitconfig.local
[core]
pager = delta
[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
[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 --graph --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"); git commit --fixup=$TARGET ${@:2} && EDITOR=true git rebase -i --autostash --autosquash $TARGET^; }; f"
[credential "https://github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
[mergetool]
prompt = false
[commit]
verbose = true