Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This basically creates a fork-bomb where each forked process is splitting out one top-level folder
- Get-ChildItem -Directory | Foreach-Object {
- $FolderName = """$($_.Name)"""
- $BranchName = $_.Name -Replace(' ','-')
- $Command = "git subtree split -P $FolderName -b $BranchName"
- Write-Host $Command
- $scriptBlock = [Scriptblock]::Create($Command)
- Start-Job -InitializationScript ([scriptblock]::Create("Set-Location $PWD")) -Scriptblock $scriptBlock
- }
Add Comment
Please, Sign In to add comment