TortoiseGit save user authentication / credentials

前端 未结 8 2227
轮回少年
轮回少年 2020-11-28 01:15

Is there a way to save GITHUB\'s user credentials with TortoiseGit?

It prompts me the below dialog every time whenever I do a push/pull.

I would

8条回答
  •  北海茫月
    2020-11-28 01:43

    Goto the project repo, right click -> 'Git Bash Here'

    In the git bash windows type

    cd ~
    pwd
    

    i get something like this

    /c/Users/
    

    Now copy your public and private keys to this path

    C:\Users\\.ssh
    

    i got the below files there

    id_rsa
    id_rsa.pub
    known_hosts
    

    here

    Now when ever it needs to use the credentials it uses these files and prompt for password if needed.

提交回复
热议问题