TortoiseGit save user authentication / credentials

前端 未结 8 2239
轮回少年
轮回少年 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:20

    If you're going to downvote this answer

    I wrote this a few months prior to the inclusion of git-credential in TortoiseGit. Given the number of large security holes found in the last few years and how much I've learned about network security, I would HIGHLY recommend you use a unique (minimum 2048-bit RSA) SSH key for every server you connect to.

    The below syntax is still available, though there are far better tools available today like git-credential that the accepted answer tells you how to use. Do that instead.


    Try changing the remote URL to https://username@github.com/username/repo.git where username is your github username and repo is the name of your repository.

    If you also want to store your password (not recommended), the URL would look like this: https://username:password@github.com/username/repo.git.

    There's also another way to store the password from this github help article: https://help.github.com/articles/set-up-git#password-caching

提交回复
热议问题