通过Eclipse获得Google App Engine资源库

时间:2014-07-07 18:24:45

标签: eclipse google-app-engine egit google-plugin-eclipse

我有一个Google App Engine项目,我可以使用gcloud命令行提交并推送到GAE存储库(不是github存储库)。

由于我使用eclipse,我尝试使用EGIT将我的GAE存储库URL设置为远程。当我使用egit提交和推送时,系统会提示我输入用户名和密码 - 我的谷歌用户名和密码不起作用。

我无法为这种特殊情况寻求帮助 - 我似乎需要使用命令行来提交和推送,或者注册一个github帐户......

配置详情:

default/.git$ cat config
[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
[credential]
    helper = gcloud.sh
[remote "origin"]
    url = https://source.developers.google.com/p/{APP ID}/r/default
    fetch = +refs/heads/*:refs/remotes/origin/*

如果EGIT无法正常使用Gcloud身份验证,是否会有一个插件?我认为既然谷歌为eclipse中的gcloud开发提供了插件,那么他们可能会支持他们自己的存储库系统......

谢谢!

1 个答案:

答案 0 :(得分:1)

JGit(EGit使用的Git实现)目前不支持这部分Git配置:

[credential]
    helper = gcloud.sh

看起来您必须生成单独的密码,请参阅this question的答案。在Eclipse中,您应该能够将用户名和密码存储在安全存储中。