Importing assignments (Using SSH)

Other than Github Desktop, another way to import assignments is using an SSH key and Code Composer Studio (CCS). Github has tutorials that get you started with this process, including generating a new SSH key and adding that SSH key to your Github account.

 An example of this process is demonstrated below, including the steps required in CCS to import a project.

Warning: Using an SSH key to authenticate with Github for git operations is likely more difficult than using the Github Desktop application described in GitHub Desktop method . If you encounter any issues with getting SSH keys to work, please follow that tutorial instead. 

First, generate a new SSH key following the tutorial linked above, or by entering the following commands in a terminal on Mac/Linux, or in Powershell on Windows. 

cd ~/.ssh/

ssh-keygen -t rsa -b 4096 -C "optional" -f id_rsa -N """"

Next you need to copy the text from the id_rsa.pub file, which may be done by opening it in your preferred text editor and copying the contents. To view the public key:

cat id_rsa.pub

then, copy all of it. 

Now, with the public key copied to your clipboard, go to Github.com and click your profile photo in the top-right corner. Then go to settings.

On the settings bar on the left side, click SSH and GPG keys.

Click New SSH key.

Paste the SSH key into the key box and click the Add SSH key button.

The SSH key you just created should now be listed under your SSH keys.

Now, go to the Github project repository you are trying to import, and click on the above buttons in the indicated order to copy the SSH URL. Next, open Code Composer Studio if you haven't already.

Under project explorer, or from the File menu in the top left corner, go to Import.

An import window should open. Click on Projects from Git (with smart import) and then click Next.

Click Clone URI and then Next.

Click Clone URI and then Next.

The SSH URL you copied from the project repository and all the other details, as seen above, should be filled automatically. If they are not, try going back to Github and copying the SSH URL again and repeat the import steps from there. If the issue persists, you may fill the details similar to the above image or use Github Desktop


At this point you may click next through all the options until the finish button is available, but may wish to change the local directory it saves the project in. To push your changes back to github in CCS, see Submitting assignments.