我在 cloufforge 设置了一个新的 Git 存储库,但遇到了一些不寻常的问题。
When I do a git pull origin master
From https://dndigital.git.cloudforge.com/project
* branch master -> FETCH_HEAD
Already up-to-date.
但是,如果一位同事也这样做,他会一遍又一遍地收到相同的信息,而没有得到“已经是最新的”
remote: Counting objects: 85, done.
remote: Compressing objects: 100% (58/58), done.
remote: Total 76 (delta 59), reused 19 (delta 13)
Unpacking objects: 100% (76/76), done.
From https://dndigital.git.cloudforge.com/project
* branch master -> FETCH_HEAD
There are no candidates for merging among the refs that you just fetched.
Generally this means that you provided a wildcard refspec which had no
matches on the remote end.
请问为什么会这样?
更新:
我尝试了建议的答案,但看不到任何问题。但似乎问题在于我们使用不同的 git 客户端。拥有不同版本的 Git 客户端似乎会成为问题。那真的很复杂。有没有办法将 Git 的功能限制在某个 git 版本,让最早的 Git 客户端仍然可以工作?
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = https://username@dndigital.git.cloudforge.com/project.git
[branch "master"]
remote = origin
merge = refs/heads/master
[user]
name =
email =
[giggle]
file-view-path = agile/includes/SiteConfig.php
[gui]
wmstate = zoomed
geometry = 787x379+512+242 248 420