Git bash for Windows NOT prompting for password

Everhill picture Everhill · Feb 8, 2012 · Viewed 15.8k times · Source

I am student, and very new to version control software so I am having trouble figuring this out. I am using a Google code Git repository. To access this repository I am using Git Bash on Windows 7. The problem is that when I reach the push step, I am not being prompted for a password. For example:

First I set global variables like this:

git config --global user.name "Your Name"
git config --global user.email [email protected] 

Cloned

$ git clone https://[email protected]/p/repository/

Then I made changes to files / added new files etc. and added

$ git add .

Committed

$ git commit -m "Message"

Pulled to make sure I am up to date

$ git pull
Already up-to-date.

But when I push I am not prompted for password

$ git push origin master
fatal: remote error: Invalid username/password.
You may need to use your generated googlecode.com password; see https://code.goo
gle.com/hosting/settings

Any suggestions? Thanks.

Answer

tb. picture tb. · Mar 30, 2020

For similar issues NOT specific to machine.google.com, you can try removing or updating the saved git password in windows credential manager. My system had my old password saved:

  1. Start
  2. Type: Credential Manager
  3. Double-Click the Windows Credential Manager shortcut
  4. Click on the "Windows Credentials" tab.
  5. Locate the credentials that you want removed, they will start with "git:" and might begin with "ada:"
  6. Click on the credential entry, it will open a details view of the entry.
  7. Click Remove to remove, or Edit to Update the password

credit: https://github.com/Microsoft/Git-Credential-Manager-for-Windows/issues/141