git checkout is confusing...
Common alternatives using switch and restore
How to create a new branch
TODOgit checkout -b new-branch
The nicer alternative to git checkout -b
git switch -c new-branch
git switch --create new-branch
git checkout -b new-branch
git checkout -b
git switch -c new-branch
git switch --create new-branch