Git push fatal error: "refs not found" for Google Cloud Source
Git push fatal error: "refs not found" for Google Cloud Source
我收到错误消息:
fatal:
https://source.developers.google.com/p/projectname/r/default/info/refs
not found: did you run git update-server-info on the server?
该项目存在,我随后使用 gcloud init
成功进行了身份验证。
但是当我这样做时 "git push google master" 我得到了上面的错误。
已解决。
我基本上没能正确 gcloud init
我的本地存储库。
正确遵循以下 link 处的说明有效:
https://cloud.google.com/tools/cloud-repositories/docs/cloud-repositories-local-repository
我还必须将 gcloud
工具放入我的 PATH 中才能使凭据生效。
这是一个相关问题,已在此处的此答案中解决:
我收到错误消息:
fatal: https://source.developers.google.com/p/projectname/r/default/info/refs not found: did you run git update-server-info on the server?
该项目存在,我随后使用 gcloud init
成功进行了身份验证。
但是当我这样做时 "git push google master" 我得到了上面的错误。
已解决。
我基本上没能正确 gcloud init
我的本地存储库。
正确遵循以下 link 处的说明有效:
https://cloud.google.com/tools/cloud-repositories/docs/cloud-repositories-local-repository
我还必须将 gcloud
工具放入我的 PATH 中才能使凭据生效。
这是一个相关问题,已在此处的此答案中解决: