powershell_git

This is an old revision of the document!


Powershell Git

git-init.ps1

if (-not(Test-Path -Path ".\.git")) {
    git init
 
    git config --global core.excludesFile ~/.gitignore
    git config --global user.name "John Doe"
    git config --global user.email jd@infostar.me
    git commit --allow-empty -m "Empty commit for initializing the repo"
    git checkout -b working
}
  • powershell_git.1640922608.txt.gz
  • Last modified: 2021/12/31 03:50
  • by mgupton