Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

拉取私有仓库 #71

Open
BA7JCM opened this issue May 8, 2022 · 6 comments
Open

拉取私有仓库 #71

BA7JCM opened this issue May 8, 2022 · 6 comments

Comments

@BA7JCM
Copy link

BA7JCM commented May 8, 2022

我想问下,ghproxy.com这个如何用于私有GitHub仓库,我直接拉取的时候跟公有库一样在链接开头加上这个,它返回401,然后问我要用户名密码,不知道填啥用户名密码,但直接拉是能啥都不用输入就能拉取的,就比如说https://github.com/test/test 是个私有仓库,我在本地直接git clone https://github.com/test/test ,什么都不用输入就能完成克隆,但如果是git clone https://ghproxy.com/https://github.com/test/test 就会问我要用户名密码,不知道要怎么用

@zaigie
Copy link

zaigie commented May 9, 2022

用户名就是你的github用户名,密码现在只能用Token,明文密码不行

@stilleshan
Copy link

git clone https://user:TOKEN@ghproxy.com/https://github.com/xxxx/xxxx

TOKEN自己在github.com个人设置里创建

@dizicheng dizicheng mentioned this issue May 29, 2022
@mtgq
Copy link

mtgq commented Aug 20, 2022

git clone https://user:TOKEN@ghproxy.com/https://github.com/xxxx/xxxx

TOKEN自己在github.com个人设置里创建

拉取私有仓库文件可以吗?我试了下还是返回401

@BA7JCM
Copy link
Author

BA7JCM commented Aug 21, 2022

git clone https://user:TOKEN@ghproxy.com/https://github.com/xxxx/xxxx

TOKEN自己在github.com个人设置里创建

拉取私有仓库文件可以吗?我试了下还是返回401

我试了是可以的,User用URLencode过的用于登录github的邮箱

@stilleshan
Copy link

stilleshan commented Aug 22, 2022

user 就是 user 这个单词,不需要是自己的用户名或者邮箱
Token确定申请对了或者权限没有设置错误?格式是 ghp_ 开头的 ghp_xxxxxxxxxxxxxxxxxxxxxxxxxx

git clone https://user:ghp_xxxxxxxxxxx@ghproxy.com/https://github.com/xxxxxx/xxxxxx

多台服务器都测试过,没有问题

@mtgq
Copy link

mtgq commented Aug 22, 2022

git clone https://user:TOKEN@ghproxy.com/https://github.com/xxxx/xxxx
TOKEN自己在github.com个人设置里创建

拉取私有仓库文件可以吗?我试了下还是返回401

我试了是可以的,User用URLencode过的用于登录github的邮箱

谢谢大佬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants