How do I provide a username and password when running “git clone git@remote.git”?

后端 未结 10 2079
有刺的猬
有刺的猬 2020-11-22 07:00

I know how to provide a username and password to an HTTPS request like this:

git clone https://username:password@remote

But I\'d like to kn

10条回答
  •  一向
    一向 (楼主)
    2020-11-22 07:42

    Follow this arguments to replace with ur special cases if they are creating an issue:

    ! # $ & ' ( ) * + , / : ; = ? @ [ ]

    %21 %23 %24 %26 %27 %28 %29 %2A %2B %2C %2F %3A %3B %3D %3F %40 %5B %5D

    So for example-

    actual URL: https://usern@me:p@ssword@git/reponame.git

    Solution URL to use: https://usern%40me:p%40ssword@git/reponame.git

提交回复
热议问题