.git/config

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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:

Git Configuration | Configuration Elements

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] entries are possible if the local repository has multiple remotes.

[branch]

See

Link a Local Branch to its Tracking Branch

[http]

See

Turn Off SSL Server Certificate Verification for a Specific Repository