Connecting to github by https using user:pw@github.com/repo when pw ends with @

前端 未结 2 814
故里飘歌
故里飘歌 2021-01-21 12:52

I am using GIT_REPO_URL=\"https://$GIT_ACCOUNT:$USER_PW@github.com/XXXX/xxx\" syntax.

Lately I have changed my password so it ends by @.

For exampl

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-21 13:13

    Why not switching to ssh and get rid of the passwords?


    Simply follow those steps and you will set up your ssh key in no time:

    • Generate a new ssh key (or skip this step if you already have a key)
      ssh-keygen -t rsa -C "your@email"

    • Once you have your key set in home/.ssh directory (or Users/.ssh under windows), open it and copy the content


    How to add sh key to github account?

    • Login to github account
    • Click on the rancher on the top right (Settings)
      github account settigns
    • Click on the SSH keys
      ssh key section
    • Click on the Add ssh key
      Add ssh key
    • Paste your key and save

    And you all set to go :-)

提交回复
热议问题