TortoiseGit save user authentication / credentials

前端 未结 8 2172
轮回少年
轮回少年 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/<windows_username>
    

    Now copy your public and private keys to this path

    C:\Users\<windows_username>\.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.

    0 讨论(0)
  • 2020-11-28 01:44

    [open git settings (TortoiseGit → Settings → Git)][1]

    [In GIt: click to edit global .gitconfig][2]

    config username and password

    0 讨论(0)
提交回复
热议问题