this post was submitted on 31 Mar 2025
34 points (100.0% liked)
Programming
13561 readers
1 users here now
All things programming and coding related. Subcommunity of Technology.
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
It promotes use of
git checkout -b
instead ofgit switch -c
:/It's also buggy, since it doesn't actually check the end state of the repository, just that the correct input has been made at some point
You probably want to add an issue to their repo?
https://github.com/MikaStiebitz/Git-Gud
I'm trying to read up on the differences, but is
git switch
basically just a newer version ofgit checkout
for changing branches? I haven't had any issues withgit checkout
before so I'm not sure why it would be an issue.Checkout did too many things that weren't really related. Hence it was split up in different commands. One of them being switch. 😁
Edit: better explanation here https://github.blog/open-source/git/highlights-from-git-2-23/#experimental-alternatives-for-git-checkout