• Stars
    star
    175
  • Rank 218,059 (Top 5 %)
  • Language
    Shell
  • Created almost 13 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Shell script for Git module deployment with include/exclude filters.

Deploy multiple Git repositories in an unique folder

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.

Installation

curl installation

$ curl https://raw.githubusercontent.com/jreinke/modgit/master/modgit > modgit
$ chmod +x modgit
$ mv modgit /usr/local/bin

wget installation

$ wget -O modgit https://raw.githubusercontent.com/jreinke/modgit/master/modgit
$ chmod +x modgit
$ mv modgit /usr/local/bin

Manual download

  • Download shell script here
  • Copy modgit file to /usr/local/bin (or any folder in your $PATH)
  • Run chmod +x modgit

Usage

Install a module

$ cd /path/to/project
$ modgit init
$ modgit add [-n] [-t tag_name] [-b branch_name] <module> <git_repository>

Update a module

$ modgit up [-n] <module>

Update all modules

$ modgit up-all [-n]

Remove a module

$ modgit rm [-n] <module>

Remove all modules

$ modgit rm-all [-n]

List installed modules

$ modgit ls

Show information about an installed module

$ modgit info <module>

Show deployed files of an installed module

$ modgit files <module>

Show help

$ modgit help

Advanced usage

Dry run mode

$ modgit add -n scheduler https://github.com/fbrnc/Aoe_Scheduler.git
  => show what would be done

Include filter

$ modgit add -i lib/ elastica git://github.com/ruflin/Elastica.git
  => will deploy only lib/ folder

Include filter with custom target

$ modgit -i lib/:library/ add elastica git://github.com/ruflin/Elastica.git
  => will deploy only lib/ (remote folder) to library/ (local folder)

Exclude filter

$ modgit add -e tests/ atoum https://github.com/atoum/atoum.git
  => will deploy all remote files and folders, except tests/ folder

Automatic modman compatibility

$ modgit add debug https://github.com/madalinoprea/magneto-debug.git
  => will parse remote modman file for files and folders mapping

More Repositories

1

magento-admin-theme

Give your Magento Admin a facelift.
CSS
225
star
2

magento-elasticsearch

Elasticsearch module for Magento 1.7+
PHP
142
star
3

magento-improve-api

Magento extension to improve some missing features of API.
PHP
92
star
4

magento-stock-movements

Magento extension to save products stock movements.
PHP
79
star
5

magento-require-login

Magento extension to force customer authentication in frontend.
PHP
55
star
6

magento-autocomplete

Super fast autocomplete for Magento
JavaScript
52
star
7

magento-suffix-static-files

Add a query parameter to js and css files to force refresh in browser.
PHP
48
star
8

magento-mink

Test your Magento website with Behat Mink.
PHP
40
star
9

magento-admin-launcher

An intuitive and powerful launcher for Magento admin panel
PHP
40
star
10

magento-highlighter

Add Syntax Highlighting to Magento Admin
JavaScript
32
star
11

magento-import-categories

Import Magento categories from cli.
PHP
32
star
12

magento-amqp

Magento extension for sending messages through AMQP protocol (RabbitMQ, ActiveMQ, ...)
PHP
28
star
13

magento-hide-default-store-code

Hide default store code from URLs
PHP
26
star
14

magento-config-nav

Include configuration tabs into admin nav for fast access
PHP
19
star
15

magento-debug

Debug any Magento page easily by adding ?debug=1 query parameter
PHP
17
star
16

magento-query-grid

Display any SQL query result as grid and chart in Magento Admin
PHP
12
star
17

magento-create-admin-controller-example

Magento extension to have an example of admin controller creation
PHP
10
star
18

magento-log-downloads

A Magento module for logging products downloads.
PHP
6
star
19

magento-slideshow

Slideshow widget for Magento.
JavaScript
6
star
20

magento-module-factory

Simple form to initialize Magento modules easily from admin panel.
PHP
6
star
21

time-tracker

Symfony time tracker for project management.
PHP
4
star
22

magento-translate-admin-form-labels

Magento extension to translate category/product form labels easily.
PHP
4
star
23

mirakl-sdk-php-shop

PHP
2
star
24

docker-magerun-install

Shell
1
star
25

magento-clever-cms

Magento CMS pages as a tree structure.
1
star
26

magento-attribute-option-image

Magento extension to add images to product attribute options.
1
star