Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "git-multi", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "The most stupid way to run a git command on multiple repositories.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -8,12 +8,27 @@ # GIT multi | ||
```npm -g install git-multi``` | ||
Install this library via [NPM](https://www.npmjs.org/package/git-multi): | ||
``` bash | ||
npm -g install git-multi | ||
``` | ||
## How it works | ||
`git-multi` runs a git command sequentially on 2+ repositories. This can be useful when you have a project spread on more repositories (ie. an app repository and some dependencies, like libraries or plugins) and you want to run the same exact git command on the main repository and it dependencies. | ||
## Setup | ||
1. ```cd <main repository>``` | ||
2. create ```.gitmulti``` file | ||
3. add to ```.gitmulti``` the path to any repository you want to manage with git-multi (1 per line) | ||
2. create `.gitmulti` file | ||
3. add to `.gitmulti` the path to any repository you want to manage with git-multi (1 per line) | ||
Then, in the `<main repository>` you can run any git command like this: | ||
``` bash | ||
git multi status | ||
``` | ||
And it will run ```git status``` in the `<main repository>` and all dependencies repositories (configured in `.gitmulti`). | ||
## Example | ||
@@ -34,6 +49,6 @@ | ||
And then run a git command to your repositories: | ||
``` | ||
And then run: | ||
``` bash | ||
cd /workspace/main-app | ||
git multi status | ||
``` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2335
53