Git 2.23 came up with the new git switch command, which is not a new feature but an additional command to switch/change branch feature which is already available in the overloaded git checkout command.
By using git switch --orphan pages, it will create a new orphan branch, named pages, and all tracked files are removed so we no longer need a rm step.
Git 2.23 came up with the new `git switch` command, which is not a new feature but an additional command to `switch/change branch` feature which is already available in the overloaded git checkout command.
By using `git switch --orphan pages`, it will create a new orphan branch, named `pages`, and all tracked files are removed so we no longer need a `rm` step.