From ac04caef3263bb28c91671b0e1f59591ff7be7db Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 17 Jan 2018 13:41:26 -0800 Subject: [git] Add configuration for GCloud repositories. --- README.md | 10 ++++++++++ gitconfig | 2 ++ 2 files changed, 12 insertions(+) diff --git a/README.md b/README.md index 4dda7de..0ccd276 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,13 @@ My personal configuration files for [Emacs](https://www.gnu.org/software/emacs/), [bash](https://www.gnu.org/software/bash/) and [git](https://git-scm.com/). + +## Git + +To clone repositories from Google Cloud: + +``` shell +$ git config --global url."https://source.developers.google.com/p/fcuny-code/r/".insteadOf gcloud: +``` + +You'll need to generate credentials for `.netrc` by following this [link](https://source.developers.google.com/auth/start?scopes=https://www.googleapis.com/auth/cloud-platform&state=franck.cuny@gmail.com). diff --git a/gitconfig b/gitconfig index e85333a..8914029 100644 --- a/gitconfig +++ b/gitconfig @@ -16,3 +16,5 @@ [http] postBuffer = 524288000 +[url "https://source.developers.google.com/p/fcuny-code/r/"] + insteadOf = gcloud: -- cgit 1.4.1