1. Remove github from windows credential manager (not working)

    git credential-manager remove --git:https://github.com
    git credential-manager deploy --git:https://github.com
  2. disable usage of windows credentials manager for git
    git config --system --unset credential.helper

    OK, I discovered that you need to either avoid checking the “Git Credential Manager” checkbox during the Git for Windows installer, or (after installation) run the Bash shell as Administrator and use git config —edit —system to remove the helper = manager line so that it is no longer registered as a credential helper.

For bonus points, use git config —edit —global and insert:

References