Create new git branch with no directory of file

You can create a new Git branch without creating a new directory or file by using the following command:

git branch <branch-name>

This will create a new branch with the specified name, but it won't create a new directory or file. You can then switch to this branch using:

git checkout <branch-name>

If you want to create a new branch and also create a new directory and file, you can use the following command:

git checkout -b <branch-name> --orphan

This will create a new branch with the specified name, and also create a new directory and file with the same name as the branch.