您可以生成用于部署的密码云控制台.
Go to cloud.google.com/console,选择您的项目,然后在左侧菜单列表中展开云开发,然后单击一键部署.
到达那里的另一种方式是从应用程序引擎控制台, under 行政, in 应用程序设置, 在里面源推送部署部分,通过以下链接:点击这里.
我假设您已经知道这一点,因为您已经成功设置了存储库。
Now, once you're in Push-to-deploy settings, you'll see a Get password and a Delete repository button at the top. Obviously, you need the former.
You'll have to go through Google's OAuth authentication, select the account that is a developer account in your application, and click Accept to grant read-write access to Google Code.
授予访问权限后,您将看到一个页面,其中显示:
这是你的 git 密码:
…
要使用此密码,请将以下文本添加到您的.netrc
file:
machine code.google.com login [email protected] password yourpassword
了解更多关于使用 Git 和推送部署。
您需要将代码复制粘贴到您的.netrc
文件,该文件应该位于您的主目录中。如果不存在,则创建它。
在 Windows 上:
As 艾德·史塔克他在评论中提到,在窗户上,.netrc
文件必须命名_netrc
instead.