openKylin论坛

 找回密码

解决从github匿名获取只读repo错误 [复制链接]

                如果想从 github 上匿名获取某个 repo, 一般都会直接到该 repo 的网页负责网页中给的 HTTPS URL. 但是, 不知道 github 抽风还是怎么了, 获取总是报错:
$ git clone https://github.com/ideawu/ssdb.gitInitialized empty Git repository in /xxx/.git/Cannot get remote repository information.Perhaps git-update-server-info needs to be run there?只好尝试使用 SSH 方式(非 github 登录用户看不到 SSH 方式的 URL):
$ git clone git@github.com:xxx/ssdb.gitInitialized empty Git repository in /xxx/ssdb/.git/Permission denied (publickey).fatal: The remote end hung up unexpectedlyfetch-pack from 'git@github.com:xxx/ssdb.git' failed.显然, 这需要输入账号和密码. 我记得 github 改版之前, 是提供了 Read-only URL 的, 不知道为什么改版之后就不提供了?! 不过, 你还是可以手工拼出只读 SSH:
git clone git@github.com/ideawu/ssdb.git把项目的网址中的”https://”替换成”git@”, 然后在末尾加上”.git”.


        原文链接: http://www.ideawu.net/blog/archives/745.html

楼主
发表于 2013-9-29 08:28:40
回复

使用道具 举报

解决从github匿名获取只读repo错误 [复制链接]

你给个邮箱用户名不就行了,没就去github注册一个
沙发
发表于 2017-5-9 22:53:53
回复

使用道具 举报

openKylin

GMT+8, 2024-5-9 11:13 , Processed in 0.024531 second(s), 18 queries , Gzip On.

Copyright ©2022 openKylin. All Rights Reserved .

ICP No. 15002470-12 Tianjin

快速回复 返回顶部 返回列表