search

Home  >  Q&A  >  body text

github - git prompts for password every time the code is updated

means that every time I submit code or update code, I am asked to enter a password. For example, when I execute git push origin lernado or git pull origin lernado, I am prompted to enter a password. Is there any way to do it without data? Update! Please give me some advice

Solved. Thank you everyone for your answers. I adopted @yangxiangming who gave a more detailed answer.

阿神阿神2769 days ago693

reply all(5)I'll reply

  • 高洛峰

    高洛峰2017-05-02 09:37:43

    Your localgit clone ...时候是不是用了https的类型。你重新设置成SSH的类型就可以了。比如github上面选择Clone with SSH复制,然后在本地重新执行git clone

    git clone git@github.com:example/example.git

    Hope it helps you

    reply
    0
  • 巴扎黑

    巴扎黑2017-05-02 09:37:43

    Submit using ssh and configure the ssh key. There are tutorials on github. If it is gitlab, there are also tutorials on it.

    reply
    0
  • 漂亮男人

    漂亮男人2017-05-02 09:37:43

    Reconfigure the secret key

    reply
    0
  • 迷茫

    迷茫2017-05-02 09:37:43

    Add the local ssh public key to your gitlab

    reply
    0
  • PHP中文网

    PHP中文网2017-05-02 09:37:43

    https method to encrypt and save user passwords. If your operating system is Linux, you can refer to this

    Please refer to this link https to save the password for details

    reply
    0
  • Cancelreply