Code Monkey home page Code Monkey logo

mgit's Introduction

mgit

Godoc Report Tests Coverage Sponsor

mgit (multi git) lets you manage multiple git repositories.

Installation

go get -u github.com/akyoto/mgit/...

Usage

Increment all semver tags

Increment semver minor version in all tags

mgit -tag +0.0.1
mgit -tag +0.0.1 -dry

Adds the given version increment to each tag. Specify -dry to stop the actual tagging and only display the diff to confirm the changes. This will never increment repositories where the last commit is already tagged / up to date.

View tags

View git tags

mgit -tags

Lets you view outdated or untagged git repositories by recursively searching everything in the working directory.

Run a command

Run command

mgit -run "go get -u"
mgit -run "npm update"

The -run flag lets you specify a command to run in every git repository. The command will be executed in parallel (one async routine per repository).

Exclude a repository

mgit -exclude "repo,repo2" -run "go get -u"
mgit -exclude "repo,repo2" -tags

The -exclude flag lets you specify a repository (or comma separated list of repositories) that will be skipped when tagging or running a command.

Setting working directory

mgit -root ~/ -tags

Use -root to use a different directory than the current working directory.

FAQ

Why is this needed?

  • Increase semver tags of multiple repositories
  • Update dependencies of multiple repositories
  • Get information about multiple repositories
  • See if your last commits are already tagged or not
  • Runs every command in parallel which makes it pretty fast

What does "not tagged" mean?

It means that the repository doesn't have any tags.

What does "outdated" mean?

It means that your last commit hasn't been tagged yet and users of your repository might still be on an outdated version.

Style

Please take a look at the style guidelines if you'd like to make a pull request.

Sponsors

Cedric Fung Scott Rayapoullé Eduard Urbach
Cedric Fung Scott Rayapoullé Eduard Urbach

Want to see your own name here?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.