Today I Learned

A Hashrocket project

Ready to join Hashrocket? Find Openings here and apply today.

Switch your git branches

As of git version 2.23, a new command was introduced for switching branches — git switch

Want to switch to an existing branch?

git switch <branch_name>

Want to switch to a new branch?

git switch -c <new_branch_name>

Full documentation: https://git-scm.com/docs/git-switch

h/t Dillon