Never heard of git switch; Good to know. I am now wondering about the difference between switch and checkout.
git switch
switch
checkout
Thanks for sharing, BTW! Keep it up!
"switch" and "restore" are relatively new offsprings from "checkout" (approx. 2 years old). It's not strange that many guides still omit them.
Switch is an improved interface from checkout. Have not needed checkout though: git switch --detach , is a bit longer.
For example previous branch: git switch -
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
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.
Never heard of
git switch; Good to know. I am now wondering about the difference betweenswitchandcheckout.Thanks for sharing, BTW! Keep it up!
"switch" and "restore" are relatively new offsprings from "checkout" (approx. 2 years old). It's not strange that many guides still omit them.
Switch is an improved interface from checkout. Have not needed checkout though: git switch --detach , is a bit longer.
For example previous branch: git switch -