Image 1 of 1: ‘Basic GitHub Branches with the `main` branch showing five commits and a `branch` forking off at the third commit with two commits of its own’
Figure 2
Image 1 of 1: ‘A linear Git History on the `main` branch showing the position of `HEAD`.’
Figure 3
Image 1 of 1: ‘Relative references on the `main` branch with 9 commits showing the commit hash and the reference relative to the `HEAD`’
Image 1 of 1: ‘Diverging branches in python-maths ns-rse/2-square-root is now behind the main branch which has incorporated the changes from ns-rse/1-zero-division.’
Figure 2
Image 1 of 1: ‘Before - diverged branches in python-maths ns-rse/2-square-root is now behind the main branch which has incorporated the changes from ns-rse/1-zero-division.’
Figure 3
Image 1 of 1: ‘After - merging ns-rse/1-zero-division into main then main into ns-rse/2-square-root. Development is completed on ns-rse/2-square-root and the feature merged into main’
Figure 4
Image 1 of 1: ‘Before - diverged branches in python-maths ns-rse/2-square-root is now behind the main branch which has incorporated the changes from ns-rse/1-zero-division.’
Figure 5
Image 1 of 1: ‘After - rebase to bring the diverged branch up-to-date with main which includes ns-rse/1-zero-division. Two more commits are made and ns-rse/2-square-root is then merged into main.’