TortoiseGit Credential Helper never works for me

This has plagued me for a long time since I first started using TortoiseGit 1.8.5.

The Credential Assistant exists, but it never works!

I have googled a lot but none of the methods worked, like TortoiseGit save user authentication / credentials

Yesterday I downloaded and installed the latest version 1.8.10 hoping the bug should be fixed. But still nothing.

Can anyone write a step-by-step tutorial on how to enable this helper tool? Many thanks!

By the way, there is a partially working method. I need to use advanced mode in the Helper Assistant dropdown; and then add a new entry for my github repository url. But this can only remember the username.

+3


source to share


4 answers


If you install Git Extensions (or the most modern Git GUI tools), they will add these lines to C: / Users / {yourusername} /. gitconfig

[credential]
    helper = !\"C:/Program Files (x86)/GitExtensions/GitCredentialWinStore/git-credential-winstore.exe\"

      



It says, "Store your Git credentials in the Windows credential store." If you do not have this line, reinstall the affected program or choose a different Git GUI tool. (All things being equal, TortoiseGit is pretty awful. See fooobar.com/questions/305588 / ... )

So now you have Credential Assistant. How do I edit credentials? Go to Control Panel -> User Accounts -> your account (you may already be there) -> Manage your credentials -> Windows Vault (you may already be there) -> scroll down to git: https://github.com and click the arrow down. You can change or remove credentials here.

+4


source


wincred

has an error if your username has @

. See this issue in msysgit .



So if you are using Bitbucket, for example, you can login with an email address, but if you edit your account, you will see that you also have a username other than email. Use this and it should work.

+4


source


If you're still wondering, the "wincred" method usually only works with a "regular" username, not email, which can sometimes be used as a username (eg on GitHub). Just take almost an hour to get wincred to work for me on Github where I was almost always logged in via email as a username. After logging in with a Github username (not email), it will start working as expected.

Hope this helps someone else for you.

+2


source


All we do is install the credential helper for wincred - the current Windows user

Then, when we do a push, we are asked for a username and password and it saves them. We're not doing anything to make this work.

0


source







All Articles