使用用户名和密码的git clone,我的密码中包含“ @”

时间:2020-05-20 19:48:18

标签: git github git-clone

我的密码中包含@,命令失败。有什么选择? git clone https://username:password@github.#########XXXXX####.com

1 个答案:

答案 0 :(得分:1)

我会使用ssh + git协议。

另一种选择是从github获取令牌,并使用该令牌代替user / pw。

直接在命令行上输入密码是一种错误的做法。

相关问题