Git Init

git init -b main # Set the name of the default branch to "main"

git config user.name "Your Name Here"
git config user.email your@email.com

git commit --allow-empty -m "Initial (empty) commit for bootstrapping the repo"
git checkout -b working
git remote add origin <remote url>
git push -u origin <branch>

Powershell

git-init.ps1

if (-not(Test-Path -Path ".\.git")) {
    git init
 
    git config --global core.excludesFile ~/.gitignore
    git config --global user.name "Michael Gupton"
    git config --global user.email mg@infostar.me
    git commit --allow-empty -m "Initial commit for bootstrapping the repo."
    git checkout -b working
}