Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lizyeseul opened this issue May 28, 2024 · 1 comment
Open

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

lizyeseul opened this issue May 28, 2024 · 1 comment

Comments

@lizyeseul
Copy link

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;
@niluan304
Copy link

order is important,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants