Git 无法将代码推送到Google云存储库

Git 无法将代码推送到Google云存储库,git,gcloud,Git,Gcloud,我是GCloud新手,正在尝试设置git存储库。我无法通过git推送代码。 我跟着台阶走。我浏览了stackoverflow和google上发布的其他问题 我不断地发现这个错误: git push google master ERROR: (gcloud.auth.git-helper) Invalid input line format: [path=]. fatal: remote error: Invalid username/password. You may need to use

我是GCloud新手,正在尝试设置git存储库。我无法通过git推送代码。 我跟着台阶走。我浏览了stackoverflow和google上发布的其他问题

我不断地发现这个错误:

git push google master

ERROR: (gcloud.auth.git-helper) Invalid input line format: [path=].
fatal: remote error: Invalid username/password.
You may need to use your OAuth token password; Note that generated google.com passwords are not compatible with
repositories

我一开始就运行了gcloudinit。为什么我得到路径和OAuth令牌错误?我应该在哪里输入这些信息?

您使用的是什么版本的git和什么操作系统?@cherba我解决了这个问题。显然,gcloud使用不同的gitconfig文件进行AllUsers和单用户安装配置。将程序文件gitconfig更新为AppData。它开始工作,你使用的是什么版本的git和什么操作系统?@cherba我解决了它。显然,gcloud使用不同的gitconfig文件进行AllUsers和单用户安装配置。将程序文件gitconfig更新为AppData。它开始工作了