Given the initial and final state of the Git commit history visualized below, you need to deduce the series of Git commands in a specific order that transformed the initial state into the final state.
Figure 1: Initial version history
Initial State (Figure 1):
• There is a single main branch with two commits. The history is linear with commit
C0 followed by commit C. The asterisk (*) indicates the checked out branch that HEAD is currently pointing to. Therefore, it shows your current location.
Figure 2: Goal to reach
Final State (Figure 2):
The main branch has a new commit C3 that follows C1
There is a new branch called bugFix pointing to commit C2’ which is a copy of C2.
The work from bugFix is moved directly onto the work from main. That way it would look like
these two features were developed sequentially, when in reality they were developed in parallel.
What sequence of Git commands were used to go from the initial state to the final state? Please provide the commands in the order they were executed, taking into account the creation of bugFix, the commits, and the the HEAD pointer.