✨ .gitconfig tweaks
This commit is contained in:
parent
9e0317062d
commit
427fb208f6
1 changed files with 43 additions and 0 deletions
|
@ -5,6 +5,25 @@
|
||||||
excludesFile = ~/dotfiles/git/.gitignore
|
excludesFile = ~/dotfiles/git/.gitignore
|
||||||
hooksPath = ~/dotfiles/git/hooks
|
hooksPath = ~/dotfiles/git/hooks
|
||||||
|
|
||||||
|
# Whitespace types to treat as errors.
|
||||||
|
# blank-at-eol: looks for spaces at EOL.
|
||||||
|
# -blank-at-eof: allows blank lines at EOF.
|
||||||
|
# space-before-tab: looks for spaces immediately before tabs at the beginning
|
||||||
|
# of the line.
|
||||||
|
whitespace = blank-at-eol,-blank-at-eof,space-before-tab
|
||||||
|
|
||||||
|
# Make `git rebase` safer on macOS.
|
||||||
|
# More info: <http://www.git-tower.com/blog/make-git-rebase-safe-on-osx/>
|
||||||
|
trustctime = false
|
||||||
|
|
||||||
|
# Prevent showing files whose names contain non-ASCII symbols as unversioned.
|
||||||
|
# http://michael-kuehnel.de/git/2014/11/21/git-mac-osx-and-german-umlaute.html
|
||||||
|
precomposeunicode = false
|
||||||
|
|
||||||
|
# Speed up commands involving untracked files such as `git status`.
|
||||||
|
# https://git-scm.com/docs/git-update-index#_untracked_cache
|
||||||
|
untrackedCache = true
|
||||||
|
|
||||||
[user]
|
[user]
|
||||||
# Do not guess the user's identity.
|
# Do not guess the user's identity.
|
||||||
useConfigOnly = true
|
useConfigOnly = true
|
||||||
|
@ -24,17 +43,41 @@
|
||||||
|
|
||||||
[init]
|
[init]
|
||||||
defaultBranch = main
|
defaultBranch = main
|
||||||
|
|
||||||
[commit]
|
[commit]
|
||||||
template = ~/dotfiles/git/commit_template
|
template = ~/dotfiles/git/commit_template
|
||||||
|
|
||||||
[push]
|
[push]
|
||||||
autoSetupRemote = true
|
autoSetupRemote = true
|
||||||
|
|
||||||
|
# Push tags automatically.
|
||||||
|
followTags = true
|
||||||
|
|
||||||
[rebase]
|
[rebase]
|
||||||
autosquash = true
|
autosquash = true
|
||||||
|
|
||||||
[merge]
|
[merge]
|
||||||
|
# Include summaries of merged commits in merge commit messages.
|
||||||
|
log = true
|
||||||
|
|
||||||
tool = vimdiff
|
tool = vimdiff
|
||||||
|
|
||||||
[mergetool]
|
[mergetool]
|
||||||
keepBackup = false
|
keepBackup = false
|
||||||
hideResolved = true
|
hideResolved = true
|
||||||
|
|
||||||
|
[diff]
|
||||||
|
# Detect when files are copied as well as renamed.
|
||||||
|
renames = copies
|
||||||
|
|
||||||
|
[apply]
|
||||||
|
# Fix whitespace errors when applying a patch, as specified in
|
||||||
|
# core.whitespace.
|
||||||
|
whitespace = true
|
||||||
|
|
||||||
|
[branch]
|
||||||
|
# Show most recently changed branches first.
|
||||||
|
sort = -committerdate
|
||||||
|
|
||||||
[include]
|
[include]
|
||||||
path = ~/.gitconfig.local
|
path = ~/.gitconfig.local
|
||||||
|
|
Loading…
Reference in a new issue