How to Build from a Previous GIT Version

If you have a problem with the current GIT version, you can revert to a previous working version easily. The commands to use will be similar to these next lines which are then explained in more detail.

cd /<path>/cin5  # substitute your repo path name for cin5
git log		 # shows a list of versions depending on history depth specification
git checkout <version> # choose a version number as listed

The git log command produces a log file with hash values for commit keys to the level specifed if the the depth paramter was specified. The hash ids are the commit names to use when you use git checkout. Next is displayed sample output:

delete stray line in last checkin

commit 4a90ef3ae46465c0634f81916b79e279e4bd9961
Author: Good Guy <[email protected]>
Date: Thu Feb 22 14:56:45 2018 -0700

nested clips, big rework and cleanup, sams new icons,
leaks and tweaks

commit f87479bd556ea7db4afdd02297fc00977412b873
Author: Good Guy <[email protected]>
Date: Sat Feb 17 18:09:22 2018 -0700

For the git checkout <version>, you would then keyin the line below for the following results:

git checkout f87479bd556ea7db4afdd02297fc00977412b873

Note: checking out 'f87479bd556ea7db4afdd02297fc00977412b873'.

You are in 'detached HEAD' state. You can look around, make
experimental changes and commit them, and you can discard any
commits you make in this state without impacting any branches by
performing another checkout.

If you want to create a new branch to retain commits you create,
you may do so (now or later) by using -b with the checkout command
again. Example:

git checkout -b <new-branch-name>

HEAD is now at f87479bd... more file size icon updates,
and more to followend

Later to get the repo back to current, use:
git checkout master

The CINELERRA-GG Community, 2021