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
1
vote
1 answer

Git push fatal error: "refs not found" for Google Cloud Source

I get the error message: fatal: https://source.developers.google.com/p/projectname/r/default/info/refs not found: did you run git update-server-info on the server? The project exists and I've followed with successful authentication using…
kassold
  • 469
  • 3
  • 8
  • 21
1
vote
2 answers

My compute engine VM isn't picking up the changes from my repository

I have a compute engine instance and the start-up script to it includes the following lines. # Get the application source code from the Google Cloud Repository. # git requires $HOME and it's not set during the startup script. export HOME=/root git…
0
votes
0 answers

Unable to connect Dataform to Google Cloud Source Repository

I tried the following example usage to create Dataform resources with terraform provided in documentation: resource "google_sourcerepo_repository" "git_repository" { provider = google-beta name = "my/repository" } resource…
0
votes
0 answers

Mirror Bitbucket Server repo in Bitbucket Cloud?

As part of some infrastructure code I am writing with Terraform, I am trying to deploy a Google cloud function. However, in the terraform code for the function, it is mandatory to specify a Cloud Source Repositories repo that the function will pull…
0
votes
0 answers

How to push from Cloud VM to cloud repository?

I committed a model from google cloud source repo to cloud VM and trained on it. After training I would like to commit the changes back to the cloud repo. How to do that in the terminal?
0
votes
1 answer

Clone cloud source repository using vscode

Can't clone cloud source repo, I added the ssh public key and followed that link which I thought having the same scenarios that I had https://ashraful.la/posts/2020-02-21-vscode-with-google-cloud-source-repository/ But still get the error of…
Gojoe
  • 91
  • 1
  • 6
0
votes
1 answer

Make CloudBuild git push last commits to a branch in another repo

I have branch_a (development branch) in repo_A and branch_b in repo_B (production branch). Both repos are on Cloud Source. Their history is the same, except for the last commit(s) in branch_a. How to make CloudBuild push last commit(s) from…
0
votes
0 answers

Remote rejected error while trying to pushing to remote repository

I am trying to clone --mirror a cloud source repository and push it to gitlab as a backup mechanism. When I first tried to do it, there was no error. However, when I tested it again after pushing some changes to the cloud source repo, I am getting…
0
votes
1 answer

How to push current Cloud Source Repository using the attached Cloud Build Trigger to another Cloud Source Repository

I have this Cloud Source Repository that has a trigger that builds the docker file and pushes to Cloud Container Registry. I want to be able to push this repo to another Cloud Source Repository from a step in the build file. But I get the following…
0
votes
1 answer

How to move code from google cloud source repositories to github enterprise along with existing versions

We have the code in GCP source repo and would like to move it GitHub Enterprise. Is there any easiest way move code from google cloud source repositories to GitHub enterprise along with the existing release versions ?
0
votes
1 answer

Make requests to Google API with Python

I'm trying to make requests to the Google API to create source repositories using a service account and his JSON key file. Since there are no client libraries for this product, I am using the queries with Python using this…
0
votes
1 answer

GCP: How to backup and recover cloud source repository to a remote place?

I am creating a landing zone in GCP using Terraform. The IaC codes are stored in Cloud Source Repository. How do I setup a backup of these codes to a remote location and define a restoration process to the DR site. Kindly help, I am new to GCP
0
votes
1 answer

ERROR : fatal: not a git repository (or any of the parent directories): .git cloud source repository

I am trying to push code from local windows to cloud source repository using cloud sdk the link i was following is https://cloud.google.com/source-repositories/docs/authentication when run the first command in my cloud sdk which is gcloud init &&…
Nishit Kumar
  • 37
  • 2
  • 10
0
votes
1 answer

Failed to retrieve function source code when deploying a cloud function from a repository on a different project

I am trying to deploy a Cloud Function from a Cloud Source Repository placed in a different project, but getting the following error: Failed to retrieve function source code (see full proto below). Project-A contains the cloud function and service…
0
votes
1 answer

Enqueuing new GitHub Commits to Google Pub/Sub in Real-Time

I'm attempting to listen to new commits to a public GitHub repository that I do not own, and would like to push new commit events to GCP Pub/Sub such that a function can consume it further. I recognize that GitHub itself exposes RSS feeds to…