This is an old revision of the document!
Powershell Git
git-init.ps1
PS script to initialize a new Git repo.
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 }
Command Aliases
function git-save { git add .; git commit } function mgl { git log } function git-ls($commit) { git ls-tree --name-only -r $commit } function git-show($commit) { git show --name-only $commit }