.git/配置 1
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = ssh://johndoe@example.com//repositories/plugins/myproject.git
[branch "master"]
remote = origin
merge = refs/heads/master
.git/配置 2
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = ssh://johndoe@example.com//repositories/plugins/myproject.git
[branch "master"]
remote = origin
merge = refs/heads/master
[branch "develop"]
remote = origin
merge = refs/heads/develop]
但是,在两个存储库中,当我输入 时branch -a
,都返回
git branch -a
* develop
master
remotes/origin/HEAD -> origin/master
remotes/origin/develop
remotes/origin/master