In git bash for windows, the username and/or password is asked in a separate UI popup prompt like below.
On Hitting Cancel you get the below shell based prompt
You may try the configuration below:
git config --global --unset credential.helper
and
git config --system --unset credential.helper
This helped me while I am using PortableGit 64-bit 2.12.1.1 on Windows 7.