After installing, you should be able to clone from and push to GitHub repositories.
Enter the directory of the project and run:
cd Git-reCamera/
sudo ./install_Git.sh
It does not support cloning/pushing resources via 'https'. You can use 'ssh' to clone with Git. If you're unfamiliar with using a password-protected SSH key to clone repositories, please Refer to the following section "GitHub SSH Setup Guide".
The command to clone resources from github is similar to the following:
sudo git clone [email protected]:jjjadand/reCamera_get-RGB-sample.git
The command to push resources from git///hub is similar to the following:
sudo git init
sudo git add .
sudo git config user.name "jjjadand"
sudo git config --global user.email "[email protected]"
sudo git commit -m "first commit"
sudo git branch -M main
sudo git remote add origin [email protected]:jjjadand/apriltag-recamera.git
sudo git push -u origin main
To pull code from GitHub via SSH, ensure your system has an SSH key configured and added to your GitHub account. Follow these steps:
First, generate an SSH key on your RISC-V device:
sudo ssh-keygen -t rsa -b 4096 -C "[email protected]"
Next, add the generated public key to GitHub:
-
Use the following command to display the public key:
sudo cat /root/.ssh/id_rsa.pub
-
Copy the output.
-
Log in to GitHub, click your avatar in the upper right corner, go to Settings, then select SSH and GPG keys on the left.
-
Click New SSH key, name the key (e.g., "RISC-V reCamera"), paste the public key into the Key field, and click Add SSH key.
On your reCamera, test the SSH connection to confirm it’s configured correctly:
sudo ssh -T [email protected]
If configured correctly, you should see a message like:
Hi your_username! You've successfully authenticated, but GitHub does not provide shell access.
Now, you can clone a GitHub repository using SSH, such like this:
sudo git clone [email protected]:jjjadand/reCamera_get-RGB-sample.git