可以找到它要求Gitlab的密码

时间:2017-08-18 06:53:59

标签: git docker

我正在尝试将项目从我的gitlab帐户克隆到我的笔记本电脑。我的labtop上有一个ssh密钥,它已被添加到我的gitlab帐户中。当我尝试克隆项目时,它要求我输入以下密码。 Idk它要求的密码。 ssh密钥密码,帐户密码或任何其他密码。我通过终端登录了docker

这就是即将到来的......

docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username (omarjandali): omarjandli
Password:
Login Succeeded

git clone git@107.170.239.166:alpha-testing/OpenTab.git opentab
Cloning into 'opentab' ...
git@107.170.239.166's password:

UPDATE :::

[core]
    repositoryformatversion = 0
    filemode = false
    bare = false
    logallrefupdates = true
    symlinks = false
    ignorecase = true
[remote "origin"]
    url = https://github.com/omar-jandali/OpenTab.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master
[remote "gitlab"]
    url = git@107.170.192.132:root/testing.git
    fetch = +refs/heads/*:refs/remotes/gitlab/*
[remote "original"]
    url = git@107.170.239.166:root/OpenTab.git
    fetch = +refs/heads/*:refs/remotes/original/*

1 个答案:

答案 0 :(得分:0)

在" opentab"目录打开" .git / config"提交并记下[remote" origin"]的网址部分。如果网址包含http://或https://请尝试将其替换为ssh://,并确保在系统上正确配置了SSH密钥。