odd@feddit.org to Programming@beehaw.org · 1 year agoGitGud - Master Git Through Playwww.gitmastery.meexternal-linkmessage-square4linkfedilinkarrow-up137arrow-down10file-text
arrow-up137arrow-down1external-linkGitGud - Master Git Through Playwww.gitmastery.meodd@feddit.org to Programming@beehaw.org · 1 year agomessage-square4linkfedilinkfile-text
minus-squareTehPers@beehaw.orglinkfedilinkEnglisharrow-up4·1 year agoI’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.
minus-squareodd@feddit.orgOPlinkfedilinkarrow-up4·1 year agoCheckout 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
I’m trying to read up on the differences, but is
git switchbasically just a newer version ofgit checkoutfor changing branches? I haven’t had any issues withgit checkoutbefore 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