I have an existing folder that has many files and folders with no source control.
I create a git repository in it’s root folder:
git init
However, there is no “master”
git branch
returns nothing.
How do I create the master branch and have it set as the initial and only branch in a folder with existing files and folders?
The
masterbranch is the default branch that is created automatically after you commit the first files: