git:cloud-repo-sync

This is an old revision of the document!


Sync Git Repo across Cloud Provider

Based on this article.

  1. Login as Repo Administrator, not just collaborator.
  2. Open the Repository Settings > Settings menu for the given repo.
  3. Enable pipeline for this repository
  4. Open the Repository Settings > SSH Keys
  5. Click generate key
  6. On the Known Host section, enter github.com, then click Fetch. After the site fingerprint fetched, click Add
  1. Create repo designated as mirror of Bitbucket
  2. Open the Setting > Deploy keys menu for the given repo
  3. Add new key, fill with information from Bitbucket. For example, Title = “Bitbucket”, Key = the key value generated by Bitbucket

Use the following example as template. Edit the repo name accordingly.

clone:
  depth: full
pipelines:
  default:
    - step:
        script:
          - git push --mirror git@github.com:semaidevadmin/semai-pro-kuasa-api.git
  • git/cloud-repo-sync.1655888169.txt.gz
  • Last modified: 2022/06/22 15:56
  • by jmerari