-3
如何将git clone
一个项目,然后cd
转换成新创建的目录中的一个动作?如何做一个git克隆并进入创建的目录
git clone http//xxx (optional folder name)
cd <created directory>
我发现了几个解决方案猛砸,像这样的:在PowerShell中
A better way to do git clone
但没有..
如何将git clone
一个项目,然后cd
转换成新创建的目录中的一个动作?如何做一个git克隆并进入创建的目录
git clone http//xxx (optional folder name)
cd <created directory>
我发现了几个解决方案猛砸,像这样的:在PowerShell中
A better way to do git clone
但没有..
这真的不是很复杂,把你引用的bash
溶液进入PowerShell的:
function Invoke-GitClone($url) {
$name = $url.Split('/')[-1].Replace('.git', '')
& git clone $url $name | Out-Null
Set-Location $name
}
你真的一天克隆很多次,值得花时间发布这个任务离子? –