.git/config: Difference between revisions
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
Additionally, the following specific configuration elements also apply: | Additionally, the following specific configuration elements also apply: | ||
==<tt>[core]</tt>== | |||
==<tt>[remote]</tt>== | |||
==[core]== | <code>[remote]</code> entires represent [[Git Concepts#Remote|remotes]] for the current repository, and are manipulated by the [[git remote#Overview|git remote]] command. | ||
<syntaxhighlight lang='ini'> | |||
==[remote]== | [remote "origin"] | ||
url = https://gogs-cicd.apps.openshift.novaordis.io/gogs/novaordis-session-servlet.git | |||
[remote] entires represent [[Git Concepts#Remote|remotes]] for the current repository, and are manipulated by the [[git remote#Overview|git remote]] command. | fetch = +refs/heads/*:refs/remotes/origin/* | ||
</syntaxhighlight> | |||
More than one <code>[remote]<c/ode> entries are possible if the local repository has multiple [[Git Concepts#Remote|remotes]]. | |||
==<tt>[branch]</tt>== | |||
More than one [remote] entries are possible | |||
==[branch]== | |||
See {{Internal|Git_branch#Link_the_Local_Branch_its_Tracking_Branch|Link a Local Branch to its Tracking Branch}} | See {{Internal|Git_branch#Link_the_Local_Branch_its_Tracking_Branch|Link a Local Branch to its Tracking Branch}} |
Revision as of 22:50, 9 January 2024
Internal
Overview
.git/config
maintains repository specific configuration is maintained, which is read and written with git config --local [...]
Configuration Elements
Configuration elements maintained in /etc/gitconfig
, .gitconfig
and .config/git/config
apply:
Additionally, the following specific configuration elements also apply:
[core]
[remote]
[remote]
entires represent remotes for the current repository, and are manipulated by the git remote command.
[remote "origin"]
url = https://gogs-cicd.apps.openshift.novaordis.io/gogs/novaordis-session-servlet.git
fetch = +refs/heads/*:refs/remotes/origin/*
More than one [remote]<c/ode> entries are possible if the local repository has multiple remotes.
[branch]
See
[http]
See
[user]
Maintains user identity information, configured with git config.
name = John Doe
email = john@doe.com