If problem is coming on windows then remove the Credentials from the Windows history.
- Go to Credential Manager
- 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.
remove credentials from git