How to restrict GitHub permissions on Windows? (To ask for the password every time)

2

Hello,

I need to at all commit the requested password password. The password is currently saved and I do not need to enter it. I think I saved this password somehow (actually I did not even know what I was doing when I set it up ...).

Note: I am using Windows (in my ubuntu everything is ok).

    
asked by anonymous 27.07.2016 / 14:56

1 answer

0

If you were first prompted for your username and password, you are certainly using the HTTPS repository.

The first thing is to find out how you are storing this password. Enter the command:

git config --system --list

See what it says on the credential.helper line. If the value is manager :

credential.helper=manager

The user and password have been stored in the Windows credentials. To remove from there, go to:

Control Panel → User Accounts → Credential Manager → Manage Windows Credentials

Locate the link credential and delete it.

Now, if the value is store :

credential.helper=store

You are using Git's own user manager and password. To remove from there, use the command:

git config --global --unset credential.helper

After this, the next pull / push will ask for the username and password again.

    
25.07.2018 / 20:28