小编Pau*_*ulo的帖子

gitlab 重定向 push/fetch/clone 登录

我正在尝试将分支推送到 gitlab 远程存储库,行为示例如下:

git clone http://(path to branch)
Cloning into 'origin'...
fatal: unable to update url base from redirection:
    asked for: http://(path to branch)/info/refs?service=git-upload-pack
redirect: http://(path to root)/users/sign_in
Run Code Online (Sandbox Code Playgroud)

请注意 url 上的更改,并且我还在 .git/config 中输入了我的凭据,如下所示

[user]
    name = myname
    pwd = mypassword
    password = mypassword
Run Code Online (Sandbox Code Playgroud)

当我注册时,存储库要求我必须专门为该项目制作一个公钥,这可能是相关的。

git git-clone git-branch gitlab

7
推荐指数
1
解决办法
1万
查看次数

标签 统计

git ×1

git-branch ×1

git-clone ×1

gitlab ×1