SyntaxFix
Write A Post
Hire A Developer
Questions
In newer version of git (2.23+) you can use:
git switch -C master origin/master
-C is same as --force-create. Related Reference Docs
-C
--force-create