multipush

DESCRIPTION:

This is multipush, a nifty tool to safely back up your source code from multiple Git repos to one or more remotes.

FEATURES/PROBLEMS:

You probably know the command:

$ git push origin master

You can use this just fine for one, maybe a couple of repos.

If you have more than a couple of repos, this becomes unmanageable.

This is where multipush comes in.

SYNOPSIS:

$ multipush

REQUIREMENTS:

- ruby

INSTALL:

Create a config file multipush.yml two directories above where your repos are. You could make a different directory for each category, e.g. ‘ruby’, ‘rails’ or just put everything in one big directory.

- home <--- put multipush.yml here
  - ruby 
  \-- my_rails_project
  \-- my_ruby_project
  \-- another_git_project

For an example on how to set up the config file, check out the example file multipush.yml in the examples directory.

Make sure your source code hosting has all the right repos set up before you invoke multipush.

So if you have three repos named john, bear and super88, make sure your local and remote are mirrored:

LOCAL:

- john
- bear
- super88

REMOTE:

- john
- bear
- super88

LICENSE:

(The MIT License)

Copyright © 2012 Commander Johnson <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.