I see the following in a Gemfile below.
我在下面的Gemfile中看到了以下内容。
What does "5343434343424324b5:x-oauth-basic@github.com" mean? Is it a commit sha? And then how would I find the branch it's on? I've tried by looking at anything with tag 1.22.0
“5343434343424324 b5:x-oauth-basic@github.com”是什么意思?这是承诺sha吗?那么我怎么才能找到它所在的分支呢?我尝试过使用1.22.0标签
gem 'company-gem', git: 'https://5343434343424324b5:x-oauth-basic@github.com/CompanyName/company-gem.git', tag: '1.22.0', require: 'company-gem/core'
2 个解决方案
#1
2
This is an OAuth url, a feature introduced by GitHub in 2012.
这是一个OAuth url, GitHub在2012年引入了这个特性。
5343434343424324b5
is the OAuth token:
是OAuth标记:
If you're cloning inside a script and need to avoid the prompts, you can add the token to the clone URL:
如果您正在一个脚本中进行克隆,并且需要避免提示,您可以向克隆URL添加标记:
git clone https://token@github.com/owner/repo.git
git克隆https://token@github.com/owner/repo.git
Warning: GitHub warns against embedding the token in the url for security reasons:
警告:GitHub警告不要在url中嵌入令牌,以确保安全:
Note: Tokens should be treated as passwords. Putting the token in the clone URL will result in Git writing it to the .git/config file in plain text
注意:令牌应作为密码处理。在克隆URL中放入令牌将导致Git以纯文本的形式写入.git/config文件。
More information: https://developer.github.com/v3/oauth/
更多信息:https://developer.github.com/v3/oauth/。
#2
0
It's authentication information. In general, URLs can take the form "protocol://username@password:hostname/path". In this case, "5343434343424324b5" is the username part and "x-oauth-basic" is the password part, but it looks like the server side app is treating "5343434343424324b5" as some sort of OAuth token.
身份验证信息。通常,url可以采用“协议://username@password:hostname/path”的形式。在本例中,“534343434343434343424324b5”是用户名部分,“x-oauth-basic”是密码部分,但看起来服务器端应用程序将“53434343434343434343424324324b5”作为某种OAuth令牌。
#1
2
This is an OAuth url, a feature introduced by GitHub in 2012.
这是一个OAuth url, GitHub在2012年引入了这个特性。
5343434343424324b5
is the OAuth token:
是OAuth标记:
If you're cloning inside a script and need to avoid the prompts, you can add the token to the clone URL:
如果您正在一个脚本中进行克隆,并且需要避免提示,您可以向克隆URL添加标记:
git clone https://token@github.com/owner/repo.git
git克隆https://token@github.com/owner/repo.git
Warning: GitHub warns against embedding the token in the url for security reasons:
警告:GitHub警告不要在url中嵌入令牌,以确保安全:
Note: Tokens should be treated as passwords. Putting the token in the clone URL will result in Git writing it to the .git/config file in plain text
注意:令牌应作为密码处理。在克隆URL中放入令牌将导致Git以纯文本的形式写入.git/config文件。
More information: https://developer.github.com/v3/oauth/
更多信息:https://developer.github.com/v3/oauth/。
#2
0
It's authentication information. In general, URLs can take the form "protocol://username@password:hostname/path". In this case, "5343434343424324b5" is the username part and "x-oauth-basic" is the password part, but it looks like the server side app is treating "5343434343424324b5" as some sort of OAuth token.
身份验证信息。通常,url可以采用“协议://username@password:hostname/path”的形式。在本例中,“534343434343434343424324b5”是用户名部分,“x-oauth-basic”是密码部分,但看起来服务器端应用程序将“53434343434343434343424324324b5”作为某种OAuth令牌。