从Google Cloud克隆特定分支

时间:2017-05-04 16:47:36

标签: git google-cloud-datastore

如何从Google Cloud克隆特定分支?

gcloud source repos clone default -b mybranch --project=projectname

不起作用

1 个答案:

答案 0 :(得分:1)

尝试这样的事情。我的分支叫做榆树。

PS C:\Users\Jeffrey Rennie\gitrepos> gcloud source repos clone quokka
Cloning into 'C:\Users\Jeffrey Rennie\gitrepos\quokka'...
remote: Total 3 (delta 0), reused 3 (delta 0)
Unpacking objects: 100% (3/3), done.
Checking connectivity... done.

Project [bookshelf-dotnet] repository [quokka] was cloned to [C:\Users\Jeffrey Rennie\gitrepos\quokka].
PS C:\Users\Jeffrey Rennie\gitrepos> cd quokka
PS C:\Users\Jeffrey Rennie\gitrepos\quokka> git checkout -t origin/elm
Branch elm set up to track remote branch elm from origin.
Switched to a new branch 'elm'
PS C:\Users\Jeffrey Rennie\gitrepos\quokka>