跳到正文

openshift git clone 代码失败

网友提供4 条回复
已上传公锁得到了ssh://02dcf2ac069d41d198b7ed39fb461091@xxxx-xxxxx.rhcloud.com/~/git/akuryou.git/

git地址

clone 时提示
Please make sure you have the correct access rights
and the repository exists.

回复

westup

22端口被墙了,该端口,或者用vpn

redfish

跟我遇到的问题是一样的 ,我现在也是不知道为什么。不过你可以这样下载代码,前提是你已经安装了rhc 工具,用以下代码
rhc app git-clone appname
同样,在push代码的时候,单纯的git push是不行的
需要先把bash 挂在后台,执行以下命令
ssh-agent bash --login -i
--输入密码,然后进入了git 的bash命令行
然后就可以 git add 、git commit
然后git push就可以了

yiyangde7

那我认为你已经用了rhc setup传了公钥,试试

git init
用这个命令先在当前文件夹创建一个新repository

ini

写详细点?

↑