36
submitted 2 months ago by Dungrad@feddit.org to c/programming@beehaw.org

geteilt von: https://feddit.org/post/10033814

Excellent new tool to learn Git!

top 4 comments
sorted by: hot top controversial new old
[-] kresten@feddit.dk 5 points 2 months ago* (last edited 2 months ago)

It promotes use of git checkout -b instead of git 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

[-] Dungrad@feddit.org 6 points 2 months ago* (last edited 2 months ago)

You probably want to add an issue to their repo?

https://github.com/MikaStiebitz/Git-Gud

[-] TehPers@beehaw.org 4 points 2 months ago

I'm trying to read up on the differences, but is git switch basically just a newer version of git checkout for changing branches? I haven't had any issues with git checkout before so I'm not sure why it would be an issue.

[-] Dungrad@feddit.org 4 points 2 months ago* (last edited 2 months ago)

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

this post was submitted on 31 Mar 2025
36 points (100.0% liked)

Programming

13361 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