Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

invalid username/password in egit when pushing changes to googlecode

I have a project hosted in googlecode with Git.

I'm using STS (SpringSource Tool Suite) with eGit.

I cloned the repository at home and I could commit & push the changes successfully. I did the same thing at work and when I try to push the changes after commiting them, it shows the following error:

https://[email protected]/p/myproject/: Invalid username/password.
You may need to use your generated googlecode.com password; see https://code.google.com/hosting/settings

I entered the googlecode generated password when I first cloned the repository (as I did at home, and this error never showed up). I try entering it again and nothing changes.

Does anyone know what could be causing this?

Thanks!!

like image 380
Neets Avatar asked Oct 01 '12 07:10

Neets


People also ask

Why does Egit ask for password on every push?

That bug (for https URI) can be linked to the (still opened in 2014) bug 355442: On every push, egit will ask for password for a secure store. The problem is, I never check the option to store the repository username and password in the push dialog. (Meaning if you forget to enter the credentials, it won't ask you again for it)

Why is my Git Remote Password not working?

remote: invalid username or password The most common cause of this error is that you have inserted an invalid username or password. Before you try any other solution, make sure you have correctly typed in your username and password to authenticate to the Git server.

Why am I getting an invalid username or password error?

If you try to access or modify a repository and enter the wrong authentication credentials, you’ll encounter the remote: invalid username or password error. In this guide, we discuss the most common causes of this error. We’ll walk through a few examples of how to fix this error so you can solve the problem you are facing.

How to avoid having to type your Git Password All the time?

That way you will avoid having to type your password all the time; and since it already seems to work, that’s what you should be using. To do that, you need to change your remote URL though, so Git knows that it needs to connect via SSH. The format is then this: [email protected]:username/repository. To update your URL use this command:


1 Answers

I resolved it by going to Preferences > General > Security > Secure Storage > Contens tab and deleting default secure storage for repository.

like image 174
Faiz Ali Avatar answered Sep 30 '22 19:09

Faiz Ali