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

Add deep links #1137

Closed dangbert closed 3 months ago

dangbert commented 3 months ago

It would be nice to have deep links like https://learngitbranching.js.org/level2/part1

So I can directly link people to a particular thing they need to learn in git

(Note: I may be able to add this functionality myself if I have time)

pcottle commented 3 months ago

You can do this today with the command query param! https://learngitbranching.js.org/?NODEMO&command=level%20remote1

dan-cbm commented 3 months ago

Interesting thanks! Still could be nice if the web app automatically updated the url as you traverse through the levels (or had a share button for the current page) but this workaround is handy

Edit: whoops responded from my other account haha