Mig*_*Slv 6 git android-studio google-cloud-platform
我成功将项目导入谷歌云.我在Mac上运行android studio.但是,当我尝试将项目推送到云存储库时,我收到错误:
致命:远程错误:无效的身份验证凭据.请生成新的标识符:https:
//source.developers.google.com/auth/start?sscopes = https://www.googleapis.com/auth/cloud-platform
我迷失在这里,Android工作室,git和谷歌云对我来说都是新手.
错误提供的帮助链接没有提到我应该获取新凭据的位置.运行机器命令我收到错误:
机器:没有接受任何参数
goo*_*all 17
如果您输入错误的凭据,第一次尝试克隆存储库时,它们将被缓存,您将继续获得"无效的身份验证凭据"错误,直到修复为止.Git Credential Manager在幕后用于缓存站点的凭据,但是如何编辑这些凭据并不明显.以下是如何修复Windows上的缓存凭据:
单击Windows凭据并找到git的条目:https://source.developers.google.com

您现在应该能够克隆您的存储库,git将使用存储的凭据进行身份验证.
小智 7
对于 Mac 上的 osx...这让我抓狂!我转到“钥匙串”>“所有项目”> 删除了“GitHub - source.developers.google.com/[您的存储库地址]”下的条目,然后重试。
您必须首先完成此过程,以确保您已设置手动凭据,但我确信您已经知道这一点。
小智 6
I have faced same problem but finally solved the issue after executing following commands. Such type of issue can arise when you by mistakenly enter invalid credential at first time. so it caches the credential entered at first time.
git config --global --unset credential.helper
git config --system --unset credential.helper
git config --global credential.helper manager
Run Code Online (Sandbox Code Playgroud)
小智 1
假设您之前已按照此云源存储库指南中的说明设置了存储库,您可能需要尝试将存储库添加为远程存储库。如指南第二部分所述,运行凭据帮助程序脚本可能会解决您的远程错误:
\n\ngit config credential.helper gcloud.sh或者,只要.netrc文件中包含以下文本,添加文件就足以让您继续操作:(可以在您提供的链接中找到更多信息)
machine source.developers.google.com login [your email address] password [Git password]source.developers.google.com最后,请按照同一链接中提供的 \xe2\x80\x9cInstructions for Removing Cookies\xe2\x80\x9d操作,确保您的 Git 客户端中不包含 Cookie 。
| 归档时间: |
|
| 查看次数: |
6343 次 |
| 最近记录: |