learnGitBranching
learnGitBranching copied to clipboard
Can someone explain to me about hint in level "Branch Spaghetti"?
The hint says "Make sure to do everything in the proper order! Branch one first, then two, then three" and the answer is
git checkout one;
git cherry-pick C4 C3 C2;
git checkout two;
git cherry-pick C5 C4 C3 C2;
git branch -f three C2;
But doesn't it matter the order? ex.
git checkout two;
git cherry-pick C5 C4 C3 C2;
git checkout one;
git cherry-pick C4 C3 C2;
git branch -f three C2;
order is important,
look at the show goal, HEAD must be point to branch two.