git/.gitconfig

; ~/.gitconfig -- see mercemay.top/src/dotfiles/
; Per-host identity lives in ~/.gitconfig.local and is included at the end.

[user]
	name = MerceMay
	email = REDACTED@users.noreply.mercemay.top

[init]
	defaultBranch = main

[core]
	editor = nvim
	pager = less -R -F -X
	autocrlf = input
	excludesfile = ~/.gitignore_global

[pull]
	ff = only

[push]
	default = simple
	autoSetupRemote = true

[fetch]
	prune = true

[rebase]
	autosquash = true
	autostash = true

[merge]
	conflictstyle = zdiff3

[rerere]
	enabled = true

[diff]
	algorithm = histogram
	colorMoved = default

[alias]
	st = status -sb
	co = switch
	br = branch
	ci = commit
	amend = commit --amend --no-edit
	lg = log --oneline --graph --decorate -20
	lga = log --oneline --graph --decorate --all
	unstage = reset HEAD --
	root = rev-parse --show-toplevel
	wip = !git add -A && git commit -m 'wip' --no-verify

[include]
	path = ~/.gitconfig.local