modgit
is a shell script for deploying multiple Git repositories in root folder of any project, which is not possible with default git submodule
command. A common use case would be the easy installation of Magento modules that need to be deployed in root folder.
$ curl https://raw.githubusercontent.com/jreinke/modgit/master/modgit > modgit
$ chmod +x modgit
$ mv modgit /usr/local/bin
$ wget -O modgit https://raw.githubusercontent.com/jreinke/modgit/master/modgit
$ chmod +x modgit
$ mv modgit /usr/local/bin
- Download shell script here
- Copy modgit file to
/usr/local/bin
(or any folder in your $PATH) - Run
chmod +x modgit
$ cd /path/to/project
$ modgit init
$ modgit add [-n] [-t tag_name] [-b branch_name] <module> <git_repository>
$ modgit up [-n] <module>
$ modgit up-all [-n]
$ modgit rm [-n] <module>
$ modgit rm-all [-n]
$ modgit ls
$ modgit info <module>
$ modgit files <module>
$ modgit help
$ modgit add -n scheduler https://github.com/fbrnc/Aoe_Scheduler.git
=> show what would be done
$ modgit add -i lib/ elastica git://github.com/ruflin/Elastica.git
=> will deploy only lib/ folder
$ modgit -i lib/:library/ add elastica git://github.com/ruflin/Elastica.git
=> will deploy only lib/ (remote folder) to library/ (local folder)
$ modgit add -e tests/ atoum https://github.com/atoum/atoum.git
=> will deploy all remote files and folders, except tests/ folder
$ modgit add debug https://github.com/madalinoprea/magneto-debug.git
=> will parse remote modman file for files and folders mapping