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.

Comments
Post new comment