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 quizz
and found a little mistake, there is this question:The correct answer can be
git switch
orgit checkout
depending on thegit version
.git checkout
was introduced on version2.4
git switch
was introduced on version2.27.x
git switch
was added to make the commands more precise, (git checkout had too many responsibilities), now instead of usinggit 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. 😉