Skip to content

akyoto/mgit

Repository files navigation

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?

About

🌊 Manage multiple git repositories.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages