且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

EGit:不能推,不能拉

更新时间:2023-11-22 23:15:28

存储库的配置似乎错过了 [remoteorigin ] section:

The configuration of the repository seems to miss this line in the [remote "origin"] section:

fetch = + refs / heads / *:refs / remotes / origin / *

fetch = +refs/heads/*:refs/remotes/origin/*

它告诉git以 refs / heads / (所有分支)并将它们存储在本地的 refs / remotes / origin / 下。例如。远程存储库中的 refs / heads / master 将成为 refs / remotes / origin / master 本地(或 origin / master 简而言之。)

It tells git to fetch all refs starting with refs/heads/ (all branches) and store them under refs/remotes/origin/ locally. E.g. the refs/heads/master in the remote repository will become refs/remotes/origin/master locally (or origin/master in short).

你可以添加它,并尝试,如果它使拉工作?

Can you add that and try if it makes pull work?

此外,知道您最初创建/克隆此存储库的方式非常有趣。

Also, it would be very interesting to know in which way you first created/cloned this repository.