A translation of the Git Book examples into PowerShell scripts from bash.