2015-09-12 80 views

回答

3

这真的不是很复杂,把你引用的bash溶液进入PowerShell的:

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