Codes implemented in Datagran can be stored internally or externally. By default, you will be working with internal repositories to store information. However, in order to have full control over the ownership of the codes, an external repository can been implemented. To migrate from an internal repository to an external one, you can follow these steps:

  1. Create a new repository in Github

  2. Clone the code in the terminal from the existing code

git clone <https://github.com/nameOfRepo/pipeline-name--operator-name.git
  1. Change the directory to the new one and copy the files to this location
cd pipeline-name--operator-name/
cp -r ../src/* .
  1. add the files and commit the changes
git add .
git commit -m "Migrating files from the internal repository"
  1. Use the git push command to upload local repository content to the remote repository.
git push origin main
  1. Destroy the current virtual machine and switch to "use an external repository of my choice"

  2. Add the SSH in the "EXTERNAL REPOSITORY" box and copy the Public key to Github