Skip to content

Instantly share code, notes, and snippets.

@holtsoftware
holtsoftware / SyncUnicorn.ps1
Last active December 13, 2019 22:35
Script to sync unicorn configs based on dependencies
[System.Collections.ArrayList]$configs = Get-UnicornConfiguration
[System.Collections.ArrayList]$synced = @()
[System.Collections.ArrayList]$toRemove = @()
$totalCount=0
while($configs.Length -gt 0)
{
$totalCount++
if($totalCount -gt 100)
{
git branch --list | egrep -v "(^\*|develop|dev)" | xargs git branch -d

Keybase proof

I hereby claim:

  • I am holtsoftware on github.
  • I am holtsoftware (https://keybase.io/holtsoftware) on keybase.
  • I have a public key ASCD7FzOKJQmgw5BywbqPUQStHbX0NDAQ8KrGgKN_QTfNwo

To claim this, I am signing this object: