Questions tagged [google-cloud-source-repos]

Cloud Source Repositories are fully-featured, private Git repositories hosted on Google Cloud Platform.

Cloud Source Repositories are fully-featured, private Git repositories hosted on Google Cloud Platform.

You can use Cloud Source Repositories for collaborative development of any application or service, including those that run on Google App Engine and Google Compute Engine. If you are using Stackdriver Debugger, you can use Cloud Source Repositories and related tools in the Cloud Platform Console to view debugging information alongside your code during application runtime.

Using Cloud Source Repositories is easy if you are familiar with Git. For example, you can add a Cloud Source Repository to a local Git repository as a remote, or you can connect it to a hosted repository on GitHub or Bitbucket. From a local repository, you can use the standard set of Git commands to interact with the repository in the Cloud, including push, pull, clone and log.

99 questions
5
votes
0 answers

Is it possible to create a cloud build trigger on a cloud source repository present in another Google Cloud project?

I wanted to know if it is possible to create a Cloud build trigger in one Google Cloud Project on a Cloud Source Repository present in another Google Cloud Project. If yes, then how to do it?
5
votes
1 answer

Google Cloud Platform error when cloning repo from bitbucket

I'm getting error like the image below when trying to clone repo from bitbucket. Got the same error when using github. Anyone ever encounter this problem? The server failed to process your request because of a conflicting operation. Please try…
4
votes
1 answer

Google Cloud Source Repositories: Permission denied (publickey)

I have a source repository setup in a project. I have my main admin user and I created a second user (did try a service account at first) and gave that user "Project Owner" access on the project with the source repo. I created an SSH key on my local…
4
votes
1 answer

Branch policy on Google cloud source repository

How to set the branch policy in Google cloud source repository, developers not allowed to push the code to the master branch, also how to create a Pull Request.
San Jaisy
  • 15,327
  • 34
  • 171
  • 290
4
votes
1 answer

Storing large files on Google Cloud Source Repositories

So the background story is this: I have some large (text) files (~100MB) that I want to version track as well as scripts that analyze them. The total amount of data I'm going to store is approximately 5GB, and I don't expect them to change as…
CloudyTrees
  • 711
  • 2
  • 10
  • 20
4
votes
1 answer

Clone Google Source Repository without gcloud

I am currently cloning the git repository present in Google Cloud Source repository using gcloud source repos clone sample_repo --project=sample_project Can I clone git repository present in Google Cloud Source Repository without using…
sag
  • 5,333
  • 8
  • 54
  • 91
4
votes
1 answer

NPM install from Google Cloud Repository in GCP App Engine

I'm trying to deploy a node.js program in Google Cloud's App Engine, but am being given the following error: Step #1: npm ERR! Error while executing: Step #1: npm ERR! /usr/bin/git ls-remote -h -t…
4
votes
2 answers

Google Cloud Source Repository makes only a shallow clone?

Our code is hosted on GitHub. We are using Google Cloud Container Builder in order to build and package our software. In order to do that, we had to connect our private repo to Google Cloud Source Repository. Unfortunately it seems that the mirror…
3
votes
1 answer

git push hangs (forever) and git-remote-https uses 99.5% CPU

I'm trying to git push a small project (712kb not taking into account the .git folder) to a new repo, hosted on Google Source Repositories, and the push never finishes. It stops right after printing the Total message (hangs for at least…
nfonrose
  • 43
  • 1
  • 8
3
votes
1 answer

HEAD of Cloud Source Repository is not pointing to any commit

Is there any way to configure the Cloud Source Repository to point the HEAD to the latest commit? I created a new repository in Cloud Source Repositories and the HEAD is not pointing to anything in the remote repo (GCP) although inside my local…
3
votes
6 answers

Failed to trigger build: Couldn't read commit

I work with cloud build and connect with bitbucket. The trigger have been work with a few build. But suddenly, I got the error like in the screenshot. I don't have any idea. What is it mean?
3
votes
2 answers

Connecting AI Platform Notebooks to Google Cloud Source Repositories

I'm very new to GCP/AI Platform/Git/etc., so please bear with me. I am trying to connect an AI Platform Notebook & VM to a Google Cloud Source Repository. I am not the only one at my organization who will be working on the code in the repo, so it's…
3
votes
1 answer

How would I control write access to branches in GCP Source Repos based on IAM roles?

I would like only 1 person to have write access to master branch. All other people would only be able to clone and make pull requests for master. Is this possible to control with Google Cloud IAM?
ForeverConfused
  • 1,607
  • 3
  • 26
  • 41
3
votes
2 answers

What causes Google gcloud error message "ERROR: (gcloud) Invalid choice: 'get'. Did you mean 'meta'?" mean?

When I try to git push to Google cloud repository, I get the above message. It then asks me to enter my credentials. After that I get the following error: Valid choices are [auth, components, compute, config, container, deployment-manager, dns,…
2
votes
0 answers

GSUTIL RSYNC with specific files

I have a Cloud Build trigger that moves files from my Cloud Source Repo to Cloud Composer GCS Bucker. I'm using the following YAML file as a starting point. steps: - name: ubuntu args: ['bash', '-c', "echo '$COMMIT_SHA' > REVISION.txt"] - name:…