Command to automatically checkout the default branch

Viewed 344

More projects are changing their default branch from master to something else like main. Is there a way to checkout the default branch without having to look up if it's called master or main or something completely different?

0 Answers
Related