This section explains how to clone your personal dep-ppl-base repository from GitHub to the Power Platform controller, as well as how to pull the latest changes from the remote repository to the controller. If this is the first time you are cloning the repository on the Power Platform controller, follow the steps below. If you have already cloned the repository, you can skip the Clone the Repository section and go directly to the Pull the Latest Changes section.

Clone the Repository

1

Open Terminal

Open a terminal on your local machine and connect to the controller using SSH:
ssh admin@<controller_ip>
Enter the admin password when prompted.
2

Navigate to Target Folder

cd /opt/plcnext/appshome/data/60002172000969
3

Initialize Git Repository

git init
4

Add Remote Repository

git remote add origin https://github.com/YOUR_USERNAME/dep-ppl-base.git
Make sure to replace YOUR_USERNAME with your actual GitHub username.
5

Enable Sparse Checkout

Enable sparse-checkout to clone only specific paths:
git sparse-checkout init --cone
git sparse-checkout set etc
6

Checkout Main Branch

git checkout main
7

Pull changes

Pull the contents from the remote repository:
git pull

Pull the Latest Changes

To pull the latest changes from the remote repository on the Power Platform controller, follow these steps:
1

Open Terminal

Open a terminal on your local machine and connect to the controller using SSH:
ssh admin@<controller_ip>
Enter the admin password when prompted.
2

Change Directory

Change directory to the location where you cloned the repository.
cd /opt/plcnext/appshome/data/60002172000969
3

Pull Changes

Run the following command to pull the latest changes from the remote repository:
git pull