Skip to content

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

Notifications You must be signed in to change notification settings

jameskleinschnitz/modgit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 

Repository files navigation

Deploy Git modules with include/exclude features

modgit is an alternative to the excellent modman tool. Directly inspired from it, modgit allows you to deploy Git modules physically in your project (no symlinks). Additionaly, you can define include/exclude filters to deploy only files and folders of your choice.

Requirements

  • bash
  • git

Installation

curl installation

wget installation

Manual download

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

Usage

Install a module:

$ cd /my/project/path
$ modgit init
$ modgit clone <module> <git_repository>

Update a module:

$ modgit update <module>

Deploy a modules changes locally:

$ modgit deploy <module>

Update all modules:

$ modgit update-all

Remove a module:

$ modgit remove <module>

Remove all modules:

$ modgit remove-all

List installed modules:

$ modgit list

Advanced usage

Include filter:

$ modgit -i lib/ clone elastica git://github.com/ruflin/Elastica.git

Include filter with custom target:

$ modgit -i lib:library clone elastica git://github.com/ruflin/Elastica.git

Exclude filter:

$ modgit -e tests clone atoum https://github.com/mageekguy/atoum

Automatic modman compatibility (parse remote modman file for files and folders mapping):

$ modgit clone magneto-debug https://github.com/madalinoprea/magneto-debug.git

Git options:

$ modgit clone elastica https://github.com/ruflin/Elastica.git --branch gh-pages

Coming soon

  • Add dry-run option

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%