Difference between revisions of ".git/config"
Jump to navigation
Jump to search
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | Default <code>.git/config</code> file executing after <code>[[git init]]</code> | + | Default <code>[[.git/]]config</code> file executing after <code>[[git init]]</code> |
[core] | [core] | ||
[[repositoryformatversion]] = 0 | [[repositoryformatversion]] = 0 | ||
Line 7: | Line 7: | ||
[[bare]] = false | [[bare]] = false | ||
[[logallrefupdates]] = true | [[logallrefupdates]] = true | ||
+ | |||
+ | [core] | ||
+ | repositoryformatversion = 0 | ||
+ | filemode = true | ||
+ | bare = false | ||
+ | logallrefupdates = true | ||
+ | ignorecase = true | ||
+ | precomposeunicode = true | ||
Configuration after setting up <code>[[git remote]]</code>: | Configuration after setting up <code>[[git remote]]</code>: | ||
Line 26: | Line 34: | ||
* <code>[[.gitignore]]</code>, <code>[[.gitconfig]]</code> | * <code>[[.gitignore]]</code>, <code>[[.gitconfig]]</code> | ||
* <code>[[git clone]]</code> | * <code>[[git clone]]</code> | ||
+ | * <code>[[git init]]</code> | ||
+ | * <code>[[git push]]</code> | ||
== See also == | == See also == | ||
+ | * {{git config}} | ||
* {{git}} | * {{git}} | ||
[[Category:Git]] | [[Category:Git]] |
Latest revision as of 14:13, 14 February 2022
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]
git config
,.git/config, .gitconfig
,--list
,--global
,Usage: git config
,credential.helper
git
: [config | init | status ]
,git add
,git rm
,git commit
,git push, git pull
,.gitconfig
,.gitignore
,git
(clone
,fetch
,pull
),git tag
,git log
,git blame
, Merge Request, LFS,git branch
,git apply
,git rebase
,git diff
,git diff-tree
,git config --global
,remote | submodule | request-pull
,GIT_TRACE, GIT_CURL_VERBOSE
,clean
,main
,git show-ref
,git reset
,git prune
,git ls-remote origin
,git checkout
,git switch
,pathspec
,git credential-osxkeychain
,git version
,pre-commit
,git --help
, GitBook,refs/
Advertising: