2015-09-12 112 views

回答

3

這真的不是很複雜,把你引用的bash溶液進入PowerShell的:

function Invoke-GitClone($url) { 
    $name = $url.Split('/')[-1].Replace('.git', '') 
    & git clone $url $name | Out-Null 
    Set-Location $name 
}