D4 - relative refs
-
git logshows the history with the 'hashes', which are unique identifiers for every commit -
addressing commits by their hashes is tedious
-
relative refs allow users yo start from a particular checkpoint and work from there
-
moving up one commit at a time with
^ -
moving up a number of times with
~<num> -
^2will follow the other parent upwards

image: learn git branching
- here,
git checkout main^2led toHEADbeing moved toC2which is the second parent - these modifiers can be daisy-chained, eg.
git checkout HEAD~^2~2

image: learn git branching