Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

git-multi

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-multi

The most stupid way to run a git command on multiple repositories.

  • 0.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
Maintainers
1
Weekly downloads
 
Created
Source

GIT multi

The most stupid way to run a git command on multiple repositories.

Install

Install this library via NPM:

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)

Then, in the <main repository> you can run any git command like this:

git multi status

And it will run git status in the <main repository> and all dependencies repositories (configured in .gitmulti).

Example

If you have the following repositories:

/workspace/main-app
/workspace/lib-1
/workspace/lib-2

You can configure git-multi on your main-app:

echo "../lib-1" >> /workspace/main-app/.gitmulti
echo "../lib-2" >> /workspace/main-app/.gitmulti

And then run:

cd /workspace/main-app
git multi status

Syntax

Run any git command on multiple repositories:

git multi <any git command>

List repositories managed by git-multi:

git multi list

Keywords

FAQs

Package last updated on 30 Oct 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc