Importing Template Repositories

Because we decided to combine all of the different boards into one repository, these instructions are now deprecated. However, they are included here in case we ever decide to use template repositories again.

Importing the Template Project (DEPRECATED)

In the following instructions, replace all instances of “Team” with a subteam board name (PowerAux, Motor, ECU, or Solar).

  1. Duplicate the TemplateCode repository following the instructions here.
    1. $ git clone --bare https://github.com/solarcaratuva/TemplateCode.git
    2. $ cd TemplateCode.git
    3. Create a new repository in the UVA Solar Car organization, named TeamCode.
    4. $ git push --mirror https://github.com/solarcaratuva/TeamCode.git
    5. $ cd ..
    6. $ rm -rf TemplateCode.git
  2. Clone the new repository (TeamCode) to your local machine.
    1. $ git clone https://github.com/solarcaratuva/TeamCode.git
    2. $ cd TeamCode
  3. Add the TemplateCode repository as a remote of the new TeamCode repository following the instructions here.
    1. $ git remote add upstream https://github.com/solarcaratuva/TemplateCode.git
  4. Now to sync the new TeamCode repository with changes in the TemplateCode repository, simply fetch and merge the remote called upstream by following the instructions here.
    1. $ git fetch upstream
    2. $ git checkout master
    3. $ git merge upstream/master

Solar Car Team at UVA