A first step in learning to program AI on IoT is pulling down and tracking source code changes. Setup Github for pulling down source code examples and track your code own changes.
Create a Github account
Go to https://github.com/ . and click sign up at the top of the page.
Then fill in the form to create your account.
To commit your own source code changes to Github setup a secure shell key.
Start by going to your Github “Settings”
From there go to “SSH and GPG keys”
SSH, secure shell, and many other software tools are designed for use on UNIX or Linux. The UNIX or Linux development tool chains are available on Mac OS X often through Homebrew and on Windows though a few routes. One of the best ways to access the Linux tool chain on Windows is by installing the Windows Subsystem for Linux (Ubuntu version) through the Windows Powershell either manually or through a simplified Windows Insider install wsl –install.
Unbuntu is the most common version of Linux used in artificial intelligence so choose the Ubuntu version of the Windows Subsystem for Linux.
Generate a secure key
Turn on a terminal shell in either Linux, Mac OS X or the Windows Subsytem for Linux.
With ssh installed generate a key:
ssh-keygen -t ed25519 -C "learniotai@gmail.com" eval "$(ssh-agent -s)" ssh-add ~/.ssh/id_ed25519 cat ~/.ssh/id_ed25519.pub ssh-ed25519 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX learniotai@gmail.com
Copy the public key into Github:
Click “Add SSH key” on your profile.
Fork own copies of source code
You can fork your own copies of source code to edit and change your own versions. Go to a source code repository like the Learn IoTAI development container environment and click “Fork”.
Go to your own fork of the source code, click “Code”, and copy the clone command.
From your terminal clone your repository fork.
git clone git@github.com:learniotai/iotai_container_env.git
You will see source code pulled down in your file browser.
Or from your terminal.
One thought on “Pull and track source code”