pcottle / learnGitBranching

An interactive git visualization and tutorial. Aspiring students of git can use this app to educate and challenge themselves towards mastery of git!
https://pcottle.github.io/learnGitBranching/
MIT License
30.4k stars 5.74k forks source link

Juggling Commits #2 False solution #1043

Closed sencercebeci closed 1 year ago

sencercebeci commented 1 year ago

In Juggling Commits https://github.com/pcottle/learnGitBranching/issues/2 question, we had to use cherry pick and amend. The way should be :

$ git checkout main $ git cherry-pick C2 $ git commit --amend $ git cherry-pick C3

But if you write that, it works too;

$ git checkout main $ git cherry-pick c2 c3

This is false because the show goal has another picture for solution.

pcottle commented 1 year ago

Discussed in #1042