Gold Apple Software Web Development by Geoff Appleby

Pushing to multiple repositories with EGit

One handy feature that I recently discovered in newer versions of EGit is the ability to push to multiple remote repositories at once. 

Previously for a Drupal module I would set up two remotes, origin (pointing to the Drupal.org sandbox repository) and github.  To push local commits to both then always required going through the push dialog twice; selecting the remote to push to, confirming the branches to push, and then finally initiating the transfer.

Now, by specifying multiple push targets in your origin configuration, you can now simply use Push to Upstream, either from the repository viewer or the project's team menu, and have your commits sent to both remote repositories simultaneously without requiring any extra dialogs.  Once complete, the status dialog will now include a column to dispay the result of pushing to each repository.

Screenshot - Push configuration Screenshot - Repository menu Screenshot - Push result

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <br> <p>
  • Lines and paragraphs break automatically.
  • Each email address will be obfuscated in a human readable fashion or (if JavaScript is enabled) replaced with a spamproof clickable link.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.