如果我尝试通过 https 协议克隆 github 私有存储库并且我的密码中包含 @ 字符怎么办?
What if I am trying to clone github private repository over https protocol and my password contains @ character in it?
我有一个私人 github 存储库,我可以仅通过发出 https 请求来克隆该存储库。 SSH 不是我的选择。
我的命令应该是这样的:
git clone https://username:password@github.com/asrrepo/QA.git
但是如果我的密码以 @ 字符开头怎么办?
git clone https://username:@password@github.com/asrrepo/QA.git
我不希望它提示我输入密码。
你可以运行
git克隆<a href="https://username@github.com/asrrepo/QA.git" rel="nofollow noreferrer">https://username@github.com/asrrepo/QA.git</a>
它将提示您输入密码
更新:(如果你不希望它被提示)
<a href="https://username:%40password@github.com/asrrepo/QA.git" rel="nofollow noreferrer">https://username:%40password@github.com/asrrepo/QA.git</a>
我有一个私人 github 存储库,我可以仅通过发出 https 请求来克隆该存储库。 SSH 不是我的选择。 我的命令应该是这样的:
git clone https://username:password@github.com/asrrepo/QA.git
但是如果我的密码以 @ 字符开头怎么办?
git clone https://username:@password@github.com/asrrepo/QA.git
我不希望它提示我输入密码。
你可以运行git克隆<a href="https://username@github.com/asrrepo/QA.git" rel="nofollow noreferrer">https://username@github.com/asrrepo/QA.git</a>
它将提示您输入密码
更新:(如果你不希望它被提示)
<a href="https://username:%40password@github.com/asrrepo/QA.git" rel="nofollow noreferrer">https://username:%40password@github.com/asrrepo/QA.git</a>