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.16k stars 5.72k forks source link

level remoteAdvanced3 branch naming not in assignment but required #1128

Closed AngeloThys closed 4 months ago

AngeloThys commented 4 months ago

In level remoteAdvanced3 it doesn't specify a different branch should be used, but is intuited.

However, the solution does not accept any name other than the one provided in the goal or solution, making the level not solvable without using of the goal as a hint.

The following example not being accepted as a valid solution:

image

$ git checkout -b foo o/main
local branch "foo" set to track remote branch "o/main"
$ git commit
$ git pull --rebase
$ git push

Not sure if this is intended behaviour or not.

P.S. Thank you for this amazing resource 🙇🏼‍♂️ , and making it available to all ❤️

pcottle commented 4 months ago

Thanks for the kind words :) and good point! I think that's what this silly sentence at the end is implying (that you have to figure out the branch name should be side):

Screenshot 2024-02-19 at 3 39 41 PM

but thats not a very satisfying thing to figure out or learn. Ill update the levle

pcottle commented 4 months ago

Updated to this:

Screenshot 2024-02-19 at 3 42 55 PM
AngeloThys commented 4 months ago

I mistook figuring out the new branch's name as a bug rather than an intended feature, that's why I thought it might've been a bug and that rather any new branch name would/should be a valid solution.

Anyway, awesome of you to be so considerate in improving a non issue ❤️