If you have a Git repository which is cloned from a Cloud Platform repository
and you want to use the Cloud Platform Pipelines command-line client to switch
to using GitHub as the source repository for the associated application,
complete the following steps:
Ensure you have all the latest commits from the Cloud Platform repository by
executing the following command:
git fetch
Rename the Cloud Platform remote repository from origin to your desired
new name, such as cloud:
git remote rename origin cloud
Add a new remote repository named origin for the GitHub repository
you want to use, replacing [USER] and [REPO] with the
appropriate values:
Run the pipelinesgithub-connectcommand to associate this repository with your Cloud Platform application.
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.
Migrating a repo to GitHub from the command line
If you have a Git repository which is cloned from a Cloud Platform repository
and you want to use the Cloud Platform Pipelines command-line client to switch
to using GitHub as the source repository for the associated application,
complete the following steps:
Ensure you have all the latest commits from the Cloud Platform repository by
executing the following command:
git fetch
Rename the Cloud Platform remote repository from origin to your desired
new name, such as cloud:
git remote rename origin cloud
Add a new remote repository named origin for the GitHub repository
you want to use, replacing [USER] and [REPO] with the
appropriate values: