Skip to content

Instantly share code, notes, and snippets.

@nobita4176
Last active October 24, 2022 01:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nobita4176/86414b8cb30fa847a4f74e84d1d576ec to your computer and use it in GitHub Desktop.
Save nobita4176/86414b8cb30fa847a4f74e84d1d576ec to your computer and use it in GitHub Desktop.
[user]
# email =
# name =
[core]
editor = "$HOME/scoop/apps/neovim/current/bin/nvim-qt.exe"
autocrlf = false
safecrlf = true
excludesfile = ~/.gitignore
attributesfile = ~/.gitattributes
whitespace = cr-at-eol
savecrlf = true
preloadindex = true
fscache = true
useBuiltinFSMonitor = false
quotepath = false
[alias]
s = status -sb
l = log --no-merges --pretty=format:"%C(yellow)%h%C(reset)\\\t%<(36,trunc)%s\\\t%C(green)%<(10,trunc)@%an%C(reset)\\\t%C(cyan)[%ci]%C(reset)"
b = branch -vv -a
amend- = commit --amend --date=\"$(date --rfc-2822)\" -C HEAD
amend = "! git --no-pager log -n1 --name-only && read -p \"\namend into this commit? [y/N]: \" yn && [ \"$yn\" = \"y\" ] && echo \"\" && git amend-"
diffc = diff -b --cached
diffh = diff -b HEAD^
ff = merge --ff --ff-only @{u}
today = log --all --no-merges --author 'kikuchi' --since=midnight --pretty=format:"%<(48,trunc)%s%C(reset)\\ %C(cyan)[%ci]%C(green)%d%C(reset)" --decorate
mru = for-each-ref --format='%(refname:short) %(color:cyan)(%(committerdate:relative))%(color:reset)' --sort=-committerdate refs/heads/
drop = "! git branch --merged | grep -v '^*' | xargs -r git branch -d"
push-f = push --force-with-lease
when = "! stat -c %y .git/FETCH_HEAD"
pr = "! gitb pr add --base netseeds3"
ignore = "! curl -L -s https://www.gitignore.io/api/$@"
[add.interactive]
useBuiltin = false
[merge]
ff = false
tool = WinMerge
[mergetool]
prompt = false
keepBackup = false
[diff]
compactionHeuristic = true
algorithm = histogram
colorMoved = zebra
[diff "minjs"]
textconv = js-beautify
[diff "mincss"]
textconv = js-beautify --css
[diff "exif"]
textconv = exiftool
[difftool]
prompt = false
[pull]
rebase = true
[push]
default = simple
autoSetupRemote = true
[pager]
branch = false
blame = true
diff = delta
log = delta
reflog = delta
show = delta
stash = false
[delta]
features = my-zebra zebra-dark
line-numbers = true
hunk-header-style = omit
hunk-header-decoration-style = none
[delta "my-zebra"]
git-moved-from-style = bold purple
git-moved-to-style = bold cyan
map-styles = "my-zebra.git-moved-from-style => syntax #804000, my-zebra.git-moved-to-style => syntax #008080"
[interactive]
diffFilter = delta --color-only
[credential]
helper = manager-core
[credential "helperselector"]
selected = manager-core
[fetch]
prune = true
[gc]
autoDetach = true
[bash]
showDirtyState = true
showUntrackedFiles = false
[color "grep"]
match = brightred
linenumber = ul white
filename = italic cyan
[help]
autocorrect = prompt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment