Relative Refs #2
Task
Rearrange the existing pointers to the given commits.
Requirements
- Force-move
maintoC6. - Move
HEADfromC2to its parentC1, keeping the detached state. - Force-move
bugFixtoC0. - Use relative references for moving backward.
Expected result
main must point to C6, bugFix to C0, and the detached HEAD to C1. You do not need to create new commits.
What you will learn
After completing the task, you will be able to:
- force-move branches;
- use
HEAD~Nreferences; - manage the positions of branches and
HEADindependently.
Goal
local