Difference between revisions of "/path/to/repo/.git/config"
Jump to navigation
Jump to search
m (Welcome moved page ~/.git/config to /path/to/repo/.git/config) |
|||
(14 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | Default <code>[[.git/]]config</code> file executing after <code>[[git init]]</code> | ||
+ | [core] | ||
+ | [[repositoryformatversion]] = 0 | ||
+ | [[filemode]] = true | ||
+ | [[bare]] = false | ||
+ | [[logallrefupdates]] = true | ||
− | |||
− | |||
[core] | [core] | ||
repositoryformatversion = 0 | repositoryformatversion = 0 | ||
− | filemode = true | + | filemode = true |
bare = false | bare = false | ||
logallrefupdates = true | logallrefupdates = true | ||
+ | ignorecase = true | ||
+ | precomposeunicode = true | ||
+ | |||
+ | Configuration after setting up <code>[[git remote]]</code>: | ||
+ | [core] | ||
+ | repositoryformatversion = 0 | ||
+ | filemode = true | ||
+ | bare = false | ||
+ | logallrefupdates = true | ||
+ | [remote "origin"] | ||
+ | [[url]] = [email protected]:your-project/your-repo.git | ||
+ | fetch = +refs/heads/*:refs/remotes/origin/* | ||
+ | [branch "main"] | ||
+ | remote = origin | ||
+ | merge = refs/heads/main | ||
+ | |||
== Related terms == | == Related terms == | ||
− | * <code>[[.gitignore]]</code> | + | * <code>[[.gitignore]]</code>, <code>[[.gitconfig]]</code> |
− | * <code>[[ | + | * <code>[[git clone]]</code> |
+ | * <code>[[git init]]</code> | ||
+ | * <code>[[git push]]</code> | ||
== See also == | == See also == | ||
− | * {{git}} | + | * {{git config}} |
+ | * {{git init}} | ||
[[Category:Git]] | [[Category:Git]] |
Latest revision as of 06:57, 17 July 2024
Default .git/config
file executing after git init
[core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true
[core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true ignorecase = true precomposeunicode = true
Configuration after setting up git remote
:
[core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "origin"] url = [email protected]:your-project/your-repo.git fetch = +refs/heads/*:refs/remotes/origin/* [branch "main"] remote = origin merge = refs/heads/main
Related terms[edit]
See also[edit]
Advertising: