learnGitBranching icon indicating copy to clipboard operation
learnGitBranching copied to clipboard

Can someone explain to me about hint in level "Branch Spaghetti"?

Open lizyeseul opened this issue 1 year ago • 1 comments

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;

lizyeseul avatar May 28 '24 08:05 lizyeseul

order is important,

look at the show goal, HEAD must be point to branch two.

wufeng5702 avatar Jun 22 '24 07:06 wufeng5702