Username and password required in "git push master-appengine",

This is my first time using Google App Engine. I am trying to load a PHP site. I am trying to download it using git. I followed their tutorial. In the end, they said to enter this code as I did. I tried to enter this code in git bash.

Here is the code - git push appengine master . He then asks me about the username and password. Nowhere in the textbook does it say anything about any username or password. I tried to provide him with my Google email id and password, but he said the authentication failed. I do not know what to do now.

+2
source share
1 answer

You can create your deployment password in the Cloud Console .

Go to cloud.google.com/console , select your project and in the menu list on the left, expand cloud development and click "Push-to" -Deployment.

An alternative way to access the App Engine console is in the Administration section in the Application Settings section in the Deployment Path section by clicking here.

I assume you already know this since you have successfully set up the repo.

Now that you are in the Push-to-deploy settings, you will see the Get password and Delete repository buttons at the top. Obviously you need the first one.

enter image description here

You need to authenticate with Google OAuth, select the account that is the developer account in your application, and click Accept to provide read and write access to the Google Code .

After granting access, you will see a page with the message:

This is your git password:

...

To use this password, add the following text to the .netrc :

 machine code.google.com login you@gmail.com password yourpassword 

Learn more about using git and Push-to-Deploy.

You need to copy the code to a .netrc , which should be in your home directory. If it does not exist, just create it.

On Windows:

Like eddard.stark mentioned in his comment, in windows, the .netrc should be named _netrc .

+4
source

All Articles