Cloning a GitHub Repository on Raspberry Pi
The following instructions are derived from here
Prerequisites
Before you clone a GitHub repository, ensure that Git is installed on your Raspberry Pi. Git usually comes preinstalled, but to be sure, update it with the following command:
sudo apt install git
Cloning a Repository
Since you enabled Projects during the Node-RED installation, the first thing you will be asked when you open Node-RED in your browser is whether you want to clone a repository. Here's how to do it:
1. Open Node-RED:
Open your web browser and navigate to Node-RED on your Raspberry Pi (http://<hostname>:1880
or http://<IP-address>:1880
).
2. Clone Repository Prompt:
When prompted to clone a repository, click "Clone Repository."

3. Enter User Details:
Enter a username and email address. These can be changed later if needed.
4. Enter Project Details:
Project Name: Enter a name for your project.
Repository URL: Copy and paste the URL of your GitHub repository.

5. Enter GitHub Credentials:
Enter your GitHub username.
Enter your GitHub Access Token. If you need help creating an access token, refer to the initial setup guide.
Click "Clone Repository."

6. Handling Missing Nodes:
If the cloned project requires additional nodes that are not installed, Node-RED will display an error message. You will need to install these nodes separately.
