2017年2月10日 星期五

[GIT] google cloude git on windows 7

 

l   gcloud init

 

l   git config credential.helper gcloud.cmd

//copy remote resource to client, folder = default

 

l   git config --system --unset credential.helper

 

l   gcloud source repos clone default

 

l   push
git push google master

 

l   clone
gcloud source repos clone default

 

l   debug

git config credential.helper gcloud.cmd

 

 

git push origin

 

 

Config setting:

 

[credential]

        helper = gcloud.cmd

       

       

[remote "QthToolSrc"]

        url = https://source.developers.google.com/p/QthToolSrc/r/vivapro20160112

        fetch = +refs/heads/*:refs/remotes/QthToolSrc/*

       

 

 

 

Another cmd

 

l   git config --list

 

 

l   google ssd setting

 

[remote "project-ssd"]

        url = https://source.developers.google.com/p/project-ssd/r/default

        fetch = +refs/heads/*:refs/remotes/project_ssd/*

       

[remote "google"]

        url = https://source.developers.google.com/p/project-ssd/

        fetch = +refs/heads/*:refs/remotes/google/*

 

 

my google project

https://console.cloud.google.com/iam-admin/projects

 

 

 

Ref:

 

Basic cmd

https://cloud.google.com/source-repositories/docs/adding-repositories-as-remotes

 

 

ERR: ERROR: (gcloud.auth.git-helper) Invalid input line format: [path=].

SOL: try cmd : credential.helper=gcloud.cmd

https://groups.google.com/forum/#!topic/google-cloud-sdk/8SfiaKEYXTM

 

 

 

 

 

Github setting python

       

[remote "origin"]

        url = git@github.com:RealCool1983/python.git

        fetch = +refs/heads/master:refs/remotes/origin/master

        puttykeyfile = C:\\Users\\Rex_wu\\.ssh\\puttyKey.ppk

       

________________________________________ 3S CONFIDENTIALITY NOTICE: This message and all attachments may contain legally privileged and confidential information. Any unauthorized review, use or distribution by anyone other than the intended recipient is strictly prohibited. If you are not the intended recipient, please contact the sender immediately by replying to the message and delete all copies. Thank you.

沒有留言:

張貼留言