I have my own private repo in Github. I used GitBash to clone it to my local computer and accidentally entered a wrong password. Then I tried again and what I had was
fatal: could not create work tree dir 'sample': Permission denied
I tried this command
git config --global --unset credential.helper
as described here Remove credentials from Git but it didn't help.
I tried this command
git credential-manager delete https://github.com
as described here Git doesn't allow me to enter my password for cloning since I got it wrong the first time but it says "Unknown command 'delete'. Please use git-credential-manager ?
to display help."
I don't know how to make it forget what I entered, or enter credentials again.