Skip to content

jjjadand/Git-reCamera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Install Git in reCamera

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

GitHub SSH Setup Guide

To pull code from GitHub via SSH, ensure your system has an SSH key configured and added to your GitHub account. Follow these steps:

1. Generate an SSH Key (if you don’t have one)

First, generate an SSH key on your RISC-V device:

sudo ssh-keygen -t rsa -b 4096 -C "[email protected]"

2. Add the SSH Public Key to GitHub

Next, add the generated public key to GitHub:

  1. Use the following command to display the public key:

    sudo cat /root/.ssh/id_rsa.pub
  2. Copy the output.

  3. Log in to GitHub, click your avatar in the upper right corner, go to Settings, then select SSH and GPG keys on the left.

  4. 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.

3. Test the SSH Connection

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.

4. Clone the Repository Using SSH

Now, you can clone a GitHub repository using SSH, such like this:

sudo git clone [email protected]:jjjadand/reCamera_get-RGB-sample.git

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published