Skip to content

Instantly share code, notes, and snippets.

@phpfunk
phpfunk / delete-old-branches.php
Last active August 29, 2015 14:23
Delete local branches not on remote
#!/usr/bin/php
<?php
define('REMOTE_NAME', 'jeff');
$branchesToKeep = array(
'cas', 'integration-sdk', 'saml-testing', 'new-authentication'
);
$branchCommands = array(