2DegreesInvesting / ds-incubator

2° Investing Initiative, ds-incubator website / eBook:
https://bit.ly/ds-incubator-videos
1 stars 4 forks source link

Not saving credentials #2

Closed looreen closed 4 years ago

looreen commented 5 years ago

After the meeting earlier today, I followed the instructions given in the book. It seems I can't save my credentials. I tried the procedure described here several times, but I am asked every time to enter credentials.

maurolepore commented 5 years ago

(Relates to #1)

Thanks @looreen for your feedback. From slack I understand you are on Windows. I don't know exactly what's wrong but we could explore some ideas to get closer to the problem.

1. Is your version of Git recent?

Automatic credentials management was apparently added to Git relatively recently (10.1 You might not need to do anything!).

On a Git Bash terminal run this:

git --version

2. What is the output of git config --global credential.helper?

On a Git Bash terminal run this:

git config --global credential.helper

I expect the output to be manager. If not run this:

git config --global credential.helper "manager"
git config --global credential.helper

I expect the output to be manager.

Also, What is the output of this?"

git config --show-origin --get credential.helper

Jenny Bryan gets this output:

file:C:/Program Files/Git/mingw64/etc/gitconfig manager

I get this output:

file:C:/Users/Mauro/.gitconfig  manager

3. Do you see git credentials stored under Control Panel\User Accounts\Credential Manager?

Maybe you want to remove the credentials, then commit and push to trigger the credentials' challenge, then check again if credentials were added at Control Panel\User Accounts\Credential Manager.

image

4. When you installed Git, Did you accept the default to enable credentials manager

image

Notes

In our organization, the only person that seems to be using two-factor authentication is @cjyetman.

image

So, (a) we can for now discard that as the source of the problem, and (b) it'll be nice to hear CJ's advice on the topic.

--

I look forward to the results of your experiments. I hope this brings us closer to solving your problem.

maurolepore commented 4 years ago

Closing now to keep open issues mostly focused on meetups and proposed topics. If need to, feel free to reopen.