@b0rk I've used checkout for so long, changing would be a struggle. Also, when I tried the other day, git switch v1.0 failed because v1.0 is a tag but not a branch. Having to know/remember details like that is painful - checkout is much more DWIM in practice...
@pfmoore yeah that makes sense! my impression isgit switch v1.0 failing is intended to be helpful (to prevent you accidentally ending up in detached HEAD state if you didn't mean to) but I'm not sure if it's always helpful in practice
@b0rk yep, the "you are now in detached HEAD state" message told me that in any case :-) Given that checking out a commit is non-destructive, I'm not sure there's that much benefit to failing rather than doing it and warning, but YMMV I guess...
@pfmoore yea stuff like this is why I've been reluctant to unreservedly recommend that folks use switch instead of checkout, even though some people seem to like it
@b0rk It took me some time to… switch (sic!) from checkout to switch (and restore) but it didn't actually took me much effort once I decided to do it. I don't think I'll ever go back.
Add comment