我需要克隆一个远程存储库。我已经安装了git和gcloud,并且位于PATH中。(我在win10中)
我只是遵循了google first steps指南。在Ubuntu中工作,但我需要它在Win10上。
这是错误消息:
gcloud source repos clone default C:\Users\XXX
git: 'credential-gcloud.sh' is not a git command. See 'git --help'.
Username for 'https://source.developers.google.com': XXXX
Password for 'https://XXXX@source.developers.google.com':
git: 'credential-gcloud.sh' is not a git command. See 'git --help'.
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 private repositories
ERROR: (gcloud.source.repos.clone) Repository in [C:\Users\XXX] is misconfigured.
我已经做了两天的几个谷歌搜索没有解决方案。有人能帮我吗?
C:\Users\jadov\Desktop\Repositorios>git config --list
core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
diff.astextplain.textconv=astextplain
rebase.autosquash=true
user.name=XXXXX
user.email=XXXXX5@gmail.com
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
credential.helper=gcloud.sh
remote.origin.url=https://source.developers.google.com/p/PROJECT_ID/r/default
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master致以敬意,
发布于 2016-10-11 01:43:22
如果你安装了google-cloud-sdk和homebrew,你可能忽略了这些说明(这很容易做到,因为它们会快速滚动,然后是SDK的自我更新)。
这让git可以和gcloud一起工作了:
google-cloud-sdk is installed at /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk. Add your profile:
for bash users
source '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.bash.inc'
source '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.bash.inc'
for zsh users
source '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc'
source '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc'
for fish users
set fish_user_paths /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin
set -x MANPATH /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/help/man /usr/local/share/man /usr/share/man /opt/x11/share/man
Run fish_update_completions to generate completions for fish based on the man pages您可能还需要重置git配置:
git config --global --unset credential.helper
git config --global --add --path credential.helper gcloud发布于 2016-05-12 20:00:08
奥凯,解决了。
git init
Reinitialized existing Git repository in C:/UsersXXXXXX/.git/
cd .git
gcloud init
Welcome! This command will take you through the configuration of gcloud....balbalbalbla
gcloud source repos clone default default发布于 2017-10-04 18:59:26
您不能在windows credential.helper上使用gcloud.sh
使用git config credential.helper gcloud.cmd更改它
https://stackoverflow.com/questions/37183026
复制相似问题