Skip to content

Instantly share code, notes, and snippets.

@jkuchar
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkuchar/ec8d7e6dd491c242cd04 to your computer and use it in GitHub Desktop.
Save jkuchar/ec8d7e6dd491c242cd04 to your computer and use it in GitHub Desktop.
git push all in this directory
{
"require": {
"nette/nette": "^2.3"
}
}
<?php
require "vendor/autoload.php";
use Nette\Utils\Finder;
$baseDir = __DIR__;
foreach(Finder::findDirectories('*')->in(".") AS $dir) {
echo $dir."\n";
chdir($dir);
`git push --all origin`;
chdir($baseDir);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment