https://github.com/arkency/multigit
Tools to deal with multiple git repositories #microservices
https://github.com/arkency/multigit
Last synced: 3 months ago
JSON representation
Tools to deal with multiple git repositories #microservices
- Host: GitHub
- URL: https://github.com/arkency/multigit
- Owner: arkency
- License: mit
- Created: 2017-08-10T19:05:03.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-06-18T13:26:44.000Z (almost 5 years ago)
- Last Synced: 2025-01-11T20:44:06.465Z (5 months ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 2
- Watchers: 13
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# multigit
Execute commands on multiple git repositories residing in a parent directory.
## Example output
```
repo1 ⑂ master > mg status -s
-- REPO: ../repo1
-- REPO: ../repo2
M lib/calculate_result.rb
M lib/shared/value_objects/money.rb
-- REPO: ../repo3
-- REPO: ../repo4
```## Installation
1. Clone the repo
2. Add this to your `~/.bashrc`:
```
source ~/path/to/the/cloned/repo/multigit.sh
```## Usage
```
$ multigit ls # any command
$ multigit git status # git command
$ multigitbox git diff # show repo name in a big, visible box
```Typically you'll add some convenience aliases or functions to `.bashrc`:
```
alias mg='multigit git'
alias mgd='multigitbox git diff'
function mgs { multigit status --short $*; }
# ...
```## Todo
* handle non-zero exit codes
* allow running with each line of output prefixed with the repo name, to be able to pipe to grep etc.