Connect a Git repository to your notebook

Connect a Git repository to your notebook

Working with Git repositories in the context of the Greennode AI Platform offers several benefits such as version control, collaboration, branching and merging, code review, traceability and auditing. Follow the guidance below to learn more about how to work with Git Repository in the concept of the Greennode AI Platform.

Mount Source Code from Git

When creating notebook instance, our Greennode AI Platform allow you to fetch source code or any related data stored on Git Repository, follow these steps:

  • Mount directoryThe mount directory is where you mount the s3 bucket to the notebook instance, and once mounted, your source code will be placed in that directory. Input exactly the path to the folder containing your source code within the notebook instance. e.g., “/home/aiproject”.

  • Git repository URL: Leave the path to your git repository in 2 cases

Once the source code is successfully fetched (only when your notebook instance runs successfully), it will be available in the Notebook instance in the mount directory for further use.

NOTE
  • Security Considerations: Using passwords directly in URLs is not recommended due to security reasons. Instead, consider using personal access tokens for authentication.

  • Risk of Data Inconsistency: Users should be aware that the Greennode AI Platform does not support automatic synchronization with Git repositories. Lack of synchronization with Git repositories can disrupt collaborative workflows and hinder team members' ability to track changes, review code, and coordinate development efforts effectively. Therefore, we recommend our using S3 bucket for the same situation instead.



    • Related Articles

    • Install a Notebook Instance

      This guide will assist you in creating a notebook instance on the Greennode AI Platform for your data science and machine learning projects, where data scientists and engineers can write, execute, and iterate on code. It usually includes features for ...
    • Connect to a notebook instance

      Greennode AI Platform offers three methods to connect to notebook instances: Code Editor: Directly access and edit code within the platform's web-based code editor. TCP Port: Connect to the notebook instance using a specified TCP port. SSH: Connect ...
    • Create a notebook instance with pre-built container

      A pre-built notebook instance is a managed environment where you can easily run Jupyter notebooks with access to Greennode AI resources. These instances are pre-configured with the computational resources you choose and can be used for data analysis, ...
    • Manage a notebook instance

      Notebook instances provide you with a dedicated environment to develop and experiment with your AI models. After creating a notebook instance, follow these steps to seamlessly manage your instances: Step 1: Accessing Notebook Instances Dashboard: ...
    • Create a notebook instance with custom container

      Custom images allow you to create a notebook environment that is precisely tailored to your specific needs. You can pre-install specific libraries, frameworks, or tools that are not included in the standard application-supported images. This saves ...