.gitconfig: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
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>.
 
=Configuration Elements=
=Example=
{{Internal|Git_Configuration#Configuration_Elements|Git Configuration &#124; Configuration Elements}}
<syntaxhighlight lang='text'>
[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>

Latest revision as of 22:45, 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.

Configuration Elements

Git Configuration | Configuration Elements