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.34k stars 5.73k forks source link

Ban checkout and use "modern" commands switch/restore #1095

Open kaddkaka opened 12 months ago

kaddkaka commented 12 months ago

Has there been any work to replace checkout with the more "direct" commands switch and checkout? I hesitate to give this learning material to new git users at work because it seems to use checkout.

pcottle commented 12 months ago

git switch is certainly supported in local sandbox, but I haven't moved the learning materials over yet :/ I feel like theres still mixed consensus on which command to use in industry, and I think git switch is still labeled as an experimental command?

I could add a lesson on switch, but if I don't switch over all of the commands in all the lessons, people might walk away preferring checkout

kaddkaka commented 12 months ago

Oh right! On git 2.42.0 man git switch says "THIS COMMAND IS EXPERIMENTAL. THE BEHAVIOR MAY CHANGE."

So it might be good to wait with the porting for that reason. I just forgot about it since I stopped using checkout completely since over a year ago.

Anyway, thanks for a really nice interactive learning tool! :)

pcottle commented 12 months ago

Yep, it's easy to forget it's experimental. It's like when Google had their products in Beta for years!

I'll probably switch the lessons when they move it out of experimental.