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?

mgit's People

Contributors

akyoto avatar philnielsen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mgit's Issues

Support For Excluding Certain Repos

Hey! Really cool little tool, one feature request (also I can try and take a look at making a PR, but wanted to get interest before I coded it), but any interest in adding some way to exclude repos from mgit -run?

Right now I'm just moving them out of the way real quick and running but it would be sweet if we can a config file or flag to exclude a repo.

Something like mgit -e "some-repo-name" -run "cat file.txt" is what I had in mind. Adding a .mgit config file that listed all of the repos to exclude from that directory would be another option.

.mgit

excluded:
  some-repo
  some-other-repo

Let me know if there is interest!

test

test - delete me....

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.