---
title: "Discussion on \"Developing on GCP 💻 - Managing Source Codes with Cloud Source Repositories  📁\" | Hashnode"
description: "Discussion on \"Developing on GCP 💻 - Managing Source Codes with Cloud Source Repositories  📁\". Google Cloud Source Repositories\n\nGoogle Cloud Source Repositories is a single place for your team to store, manage, and track code.\nCloud Source Repositories allows developers to collaborate easily and more securely manage your code on a fully featu..."
url: "https://hashnode.com/posts/developing-on-gcp-managing-source-codes-with-cloud-source-repositories/5d17a441f96a9fd53220261f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Developing on GCP 💻 - Managing Source Codes with Cloud Source Repositories 📁](https://fullstackgcp.timtech4u.dev/developing-on-gcp-managing-source-codes-with-cloud-source-repositories?utm_source=hashnode&utm_medium=feed)

Google Cloud Source Repositories Google Cloud Source Repositories is a single place for your team to store, manage, and track code. Cloud Source Repositories allows developers to collaborate easily and more securely manage your code on a fully featu...

Jun 29, 2019 · fullstackgcp.timtech4u.dev  
Read the article

-   [#development](https://hashnode.com/tag/development)

## Written by

[Timothy Olaleke](https://hashnode.com/@timtech4u)

@timtech4u · Kano, Nigeria

  
[View profile](https://hashnode.com/@timtech4u)

Software Developer & Google Developer Expert for Cloud

Tim is a software developer who builds awesome stuff, he has a wide experience in building customer-based solutions for digital needs using mind-blowing technologies. He is also a DevOps Enthusiast with a passion for automation and an open-source hobbyist, in his free time, he writes a lot of Google Cloud related tutorials and makes open contributions on GitHub. Tim is an active member of various developers communities, where he focuses on making impacts and sharing his experiences whilst learning.

## Responses 3

Markdown supported · ⌘↵ to post

[Bharath KP](https://hashnode.com/@bharathdsce)

[Apr 21, 2020](https://hashnode.com/posts/developing-on-gcp-managing-source-codes-with-cloud-source-repositories/5d17a441f96a9fd53220261f/comment/5e9f30510135fc41766292fc)

Hi Timothy,

I've followed the ways that is mentioned in above to mirror a github repo wo my source repository in GCP.

However, after initial authentication with github, I select a repository and click on connect repository. I keep seeing an error message "Failed to connect repositories". I read in one of the stackoverflow comments that we need to wait for a couple of days after authenticating for the keys to spread properly. Is it true? I couldn't find any logs in stackdriver as well. The same error pops up for both private and public repos

[Timothy Olaleke](https://hashnode.com/@timtech4u)

[May 2, 2020](https://hashnode.com/posts/developing-on-gcp-managing-source-codes-with-cloud-source-repositories/5d17a441f96a9fd53220261f/comment/5e9f30510135fc41766292fc#reply-5ead48cd72d611c911f1fc22)

Hello, have you been able to resolve this? You can take a look at this also: [github.com/marketplace/google-cloud-build](https://github.com/marketplace/google-cloud-build)

[Sundaram Srivastava](https://hashnode.com/@sundaram)

[Mar 16, 2020](https://hashnode.com/posts/developing-on-gcp-managing-source-codes-with-cloud-source-repositories/5d17a441f96a9fd53220261f/comment/5e70076abc8844135ba4c915)

Hi, Can you please explain how can I merge the code in cloud source repository. suppose I have created 2 repository :- A & B. A belongs to project DEV & B belongs to project PROD. Now I want to merge the code from repo-A to repo-B. How can I do it, like in GITHUB we have option of merge request for 2 branches. Also how can I ensure that as soon as code gets merged to repo-B, the cloudbuild gets triggered & it deploys the code to app engine of PROD.

[Timothy Olaleke](https://hashnode.com/@timtech4u)

[May 2, 2020](https://hashnode.com/posts/developing-on-gcp-managing-source-codes-with-cloud-source-repositories/5d17a441f96a9fd53220261f/comment/5e70076abc8844135ba4c915#reply-5ead484926e78ca711dfbfd9)

Hi [Sundaram Srivastava](https://hashnode.com/@sundaram) , I'm just seeing this. The way I do this is to use Cloud Build to trigger the codes copying to another repository, ensure that your Cloud Build service account has permission to the other repo. This is my config file:

```
steps:
  - name: gcr.io/cloud-builders/git
    args: ['init']
  - name: gcr.io/cloud-builders/git
    args: ['add', '-A']
  - name: gcr.io/cloud-builders/git
    args: ['config', '--global', 'user.name', '${_GIT_NAME}']
  - name: gcr.io/cloud-builders/git
    args: ['config', '--global', 'user.email', '${_GIT_EMAIL}']
  - name: gcr.io/cloud-builders/git
    args: ['commit', '-am', 'latest production commit']
  - name: gcr.io/cloud-builders/git
    args: ['push', '-f', 'source.developers.google.com/p/$%7B_PROD_PROJECT%…', 'master']
```

[YUSUF ABDURRAHMAN](https://hashnode.com/@alyusufy8190)

[Jun 30, 2019](https://hashnode.com/posts/developing-on-gcp-managing-source-codes-with-cloud-source-repositories/5d17a441f96a9fd53220261f/comment/5d1813b8285a54301a97d267)

Great & elegant article, I like it well..... Thanks

[Timothy Olaleke](https://hashnode.com/@timtech4u)

[Jun 30, 2019](https://hashnode.com/posts/developing-on-gcp-managing-source-codes-with-cloud-source-repositories/5d17a441f96a9fd53220261f/comment/5d1813b8285a54301a97d267#reply-5d18691c0347dbb030523271)

Thank you Yusuf

[Ami Beni](https://hashnode.com/@moldkoa)

[Oct 4, 2019](https://hashnode.com/posts/developing-on-gcp-managing-source-codes-with-cloud-source-repositories/5d17a441f96a9fd53220261f/comment/5d1813b8285a54301a97d267#reply-5d97add5e0eb9caf493325ab)

Thanks Timothy. Does GCP or CSR to be specific also offer a web interface for collaboration with teammates similar to GitHub and bitbucket where you can comment, manage pull requests etc ?
