March 9th, 2021

git switch = mind blown

As I'm sure many developers do, I was just looking up how to pull a remote branch local because it's always a few commands with some flags. But not anymore. Git added the switch command which does it all in one shot.

If you have a remote branch called feature/cool-stuff and want to pull it remote and change to it type git switch feature/cool-stuff.

Now you'll have that branch locally so you can work with it.