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

Level "Branches grow with you": Not accepting changes to "birthday" branch? #184

Open
T-X opened this issue Sep 5, 2023 · 4 comments
Open

Comments

@T-X
Copy link

T-X commented Sep 5, 2023

Hi,

On Debian Sid I tried to solve the "Branches grow with you" level as follows:

$ git checkout birthday
$ echo "You handover the present" >> you
$ git commit -a -m "Give present"
$ git checkout concert
$ echo "You dance at the concert" >> you
$ git commit -a -m "Dance at the concert"

However only the second but not the first win condition turns green. The condition "Travel directly to the last yellow commit of the birthday timeline, make a change to 'you', and make a commit" stays red.

I'm using the precompiled v0.6.5 for Linux.

@AceTheFace
Copy link

You did not follow precisely the instructions. You have to checkout the last commit and not only switch to the branch. Technically it's the same - for the game mechanics it's a difference.

@divyesh-vartha
Copy link

Technically it's the same

Actually its not the same technically too.

See here: https://stackoverflow.com/questions/57123031/git-checkout-commit-hash-vs-git-checkout-branch

@CodeAsm
Copy link

CodeAsm commented Apr 15, 2024

🫢 Owww, instead of checkout branch, we checkout the actual commit the branch now points to. getting detached heads warnings. this is so naughty. What are we learning here? could this be done with less detached heads?

@defini-tiv
Copy link

well its useful to learn that the Branch doesn't "move with you" if you checked out a commit instead of a branch. That's what this lesson is about...

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

5 participants