git switch was added to make the commands more precise, (git checkout had too many responsibilities), now instead of using git checkout to switch branchs or restore tree files we have two new commands: git switch and git restore
Thanks for the contribution! I've edited the question and included you in the Top contributors list 👍🏆
Also you can submit edits directly from the platform... As soon as each question is answered there is an Edit option on the left. 😉
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Madza, this project is super nice, congratulations.
I've taken the
git quizzand found a little mistake, there is this question:The correct answer can be
git switchorgit checkoutdepending on thegit version.git checkoutwas introduced on version2.4git switchwas introduced on version2.27.xgit switchwas added to make the commands more precise, (git checkout had too many responsibilities), now instead of usinggit checkoutto switch branchs or restore tree files we have two new commands:git switch and git restore
Thanks for the contribution! I've edited the question and included you in the Top contributors list 👍🏆
Also you can submit edits directly from the platform... As soon as each question is answered there is an Edit option on the left. 😉