.gitconfig: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 4: Line 4:
=Overview=
=Overview=
<code>~/.gitconfig</code> configuration applies to a specific user, and it is read and written by <code>git config --global [...]</code> An equivalent file is <code>[[.config/git/config]]</code>.
<code>~/.gitconfig</code> configuration applies to a specific user, and it is read and written by <code>git config --global [...]</code> An equivalent file is <code>[[.config/git/config]]</code>.
=Example=
<syntaxhighlight lang='ini'>
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[user]
name = Ovidiu Feodorov
email = ovidiu@example.com
[push]
autoSetupRemote = true
</syntaxhighlight>

Revision as of 22:44, 9 January 2024

Internal

Overview

~/.gitconfig configuration applies to a specific user, and it is read and written by git config --global [...] An equivalent file is .config/git/config.