Skip to content

Notes on git

Ayaz Siddiqui edited this page Jun 13, 2019 · 4 revisions
Saving an older version of the repository on your PC
  1. Install TortoiseGit on your PC. (This probably isn't necessary, but it is the only way I have learned to do it so far).
  2. In the folder that contains the OCTProject.prj (Simulink project file), right click anywhere in the white space, hover your mouse pointer over 'TortoiseGit' and select 'Show log'.
  3. This should open a window which has the working tree, commit messages, the names of the people who made the commit and the date of the commit.
  4. You can find the version that you wish to go back to by scrolling down the list or by entering the SHA-1 ID (eg. 2f03de49b60f008406cdfc43f478b43920dbbd3c) of the commit in the find block on top of the window. You can find the SHA-1 ID on github->commits or on Slack.
  5. Right click on the version that you are interested in click on export this verion.
  6. Specify the name of the zip file that you wish to export the repository to. This zip file should contain the older version of the repository.

Clone this wiki locally