Last edited · 5 revisions  


GitHub Cheat Sheet

GitHub is free repository for storing and managing software projects.Version control is built in

If you have not already registered as a user of GitHub, create a user account before proceeding with the following  instructions. The URL is


In this example,  we are going to pull Mike Riley’s Basic-02 remote GitHub repository to a local machine including the main branch and a second branch called files.


On your local Linux machine, move to  the top directory level where you want the repository to reside.


Issue the command:

git clone


The GitHub system will now ask for your user name and password and then pull the main branch of the repository called Basic-02 to your local machine. 


Now pull the files branch by issuing the command:

git pull origin files


Issue the command:



The above command should result in the sbc binary for Basic-02 being created in the directory Basic-02


To pull a sub-sequent update to the files branch, 

issue the following commands:

git branch               (shows what branch you are currently on- should be main)

git checkout files   (move the active branch to files)

git branch               (shows what branch you are currently on - should be files)

git  pull                     (pulls any updates on the files branch)

make                         (compile any updated code)



Other useful git commands are:

git status

git log


The .git sub-directory contains all the GitHub  state files including the log file.