git_init

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
git_init [2021/06/02 12:09] – created mguptongit_init [2021/12/31 21:16] (current) – [Powershell] mgupton
Line 1: Line 1:
 ====== Git Init ====== ====== Git Init ======
 +
 +==== Powershell ====
 +
 +=== git-init.ps1 ===
 +
 <code powershell> <code powershell>
 if (-not(Test-Path -Path ".\.git")) { if (-not(Test-Path -Path ".\.git")) {
Line 5: Line 10:
          
     git config --global core.excludesFile ~/.gitignore     git config --global core.excludesFile ~/.gitignore
-    git config user.name "Michael Gupton" +    git config --global user.name "Michael Gupton" 
-    git config user.email mg@infostar.me +    git config --global user.email mg@infostar.me 
-    git commit --allow-empty -m "Initial (empty) commit for bootstrapping the repo."+    git commit --allow-empty -m "Initial commit for bootstrapping the repo."
     git checkout -b working     git checkout -b working
 } }
 </code> </code>
  
  • git_init.1622635768.txt.gz
  • Last modified: 2021/06/02 12:09
  • by mgupton