Skip to content
Fix Code Error

Remove credentials from Git

March 13, 2021 by Code Error
Posted By: Anonymous

I’m working with several repositories, but lately I was just working in our internal one and all was great.

Today I had to commit and push code into other one, but I’m having some troubles.

$ git push appharbor master
error: The requested URL returned error: 403 while accessing https://[email protected]/mitivo.git/info/refs?service=git-receive-pack
fatal: HTTP request failed

There is nothing I can do, that would bring the password entry again.

How can I reset the credentials on my system so Git will ask me for the password of that repository?

I have tried:

  • git config --global --unset core.askpass

in order to unset the password

  • git config credential.helper 'cache --timeout=1'

in order to avoid credentials cache…

Nothing seems to work; does anyone have a better idea?

Solution

If this problem comes on a Windows machine, do the following.

  • Go to Credential Manager
    • in German, it is called: Anmeldeinformationsverwaltung
    • in French, it is called: Gestionnaire d’identification
  • Go to Windows Credentials
  • Delete the entries under Generic Credentials
  • Try connecting again. This time, it should prompt you for the correct username and password.

Go to Credential Manager

Go to Windows Credentials and Delete the entries under Generic Credentials

Answered By: Anonymous

Related Articles

  • Reset/remove CSS styles for element only
  • Eclipse will not start and I haven't changed anything
  • Gradle error: Execution failed for task…
  • Jetpack Compose and Hilt Conflict
  • org.gradle.api.tasks.TaskExecutionException: Execution…
  • Retrieve specific commit from a remote Git repository
  • Why am I getting a "401 Unauthorized" error in Maven?
  • SQLException: No suitable Driver Found for…
  • Why do git fetch origin and git fetch : behave differently?
  • Unset WooCommerce checkout fields based on cart items…

Disclaimer: This content is shared under creative common license cc-by-sa 3.0. It is generated from StackExchange Website Network.

Post navigation

Previous Post:

How to grant permission to users for a directory using command line in Windows?

Next Post:

How to split a string into an array in Bash?

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Get code errors & solutions at akashmittal.com
© 2022 Fix Code Error