- Get link
- X
- Other Apps
When you push or pull to a private repository over HTTPS, you are not prompted for a password.
The most likely reason for this is that Git has been configured to use a credential helper.
The configuration could have been made a) for all users in your system b) only for your user c) for a specific repository.
You can check which one of the 3 is the case by running these commands respectively:
git config --system credential.helpergit config --global credential.helpergit config --local credential.helper
In case a credential helper is configured, you should see it listed in the output like below:
$ git config --system credential.helper
osxkeychainIf you wish to be prompted for a password every time you push or pull to your remote repo, you can remove the credential helper from the configuration.
Depending on where the credential helper is configured, you can unset it using the respective command:
git config --system --unset credential.helpergit config --global --unset credential.helpergit config --local --unset credential.helper
Comments
Post a Comment