Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Git Init ====== <code> 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" </code> <code> git checkout -b working </code> <code> git remote add origin <remote url> git push -u origin <branch> </code> ==== Powershell ==== === git-init.ps1 === <code powershell> 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 } </code> git_init.txt Last modified: 2025/12/30 16:20by mgupton