70
Fossil: A Git alternative with batteries included
(fossil-scm.org)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
2019, so 4-5 years ago so not that recent but not ancient either. But unfortunately tutorials have not been updated.
I would say that the biggest benefit of
git switchis that you can't switch to a detached state without using a flag (--detachedor-d). If you dogit co $tagorgit co $sha-1you may get at one point the error “you are in a detached state” which is ununderstable for begginers. To get the same error withgit switchyou must explicitely usegit switch --detached $tag/$sha-1which makes it much easier to understand and remember that you are going to do something unusual.More generally it's harder to misuse
git switch/git restore. And it's easier to explain them since the only do one thing (unlikegit checkoutwhich is a mess !).So if it's only for you
git checkoutis fine, but I would still advice to usegit switchandgit restoreso you will have an easier time to teach/help begginers.