how to specify multiple remote repositories
So here is what I am trying to do. I have downloaded some source from git for a project.
I would like to be able to make changes locally in my own git repo and also push these changes to another git server (where I host the app)
I seem to be able to do all of this ok but the only issue is rubymine does not seem to remember where I pushed my changes to.
example
I do a checkout from github of a project that I have readonly access too.
I make some customizations to the code and push it out to my own get repository server (an instance of gitolite)
Then in the future I can get new versions of the code from github and have them merge with the customizations I have made and push again over to gitolite.
The problem is rubymine doesn't seem to remember the url to my gitolite server and I can't figure out where to specify it so it remembers.
Currently I have to type the url into the remote field every time.
Since this is a dropdown it seems I should be able to set up multiple options for where to push my code to.
Maybe I am going about the whole thing wrong so if anyone has any suggestions it would be much appreciated.
Thanks,
Dal
Please sign in to leave a comment.
Michael,
If you add the second server as another remote to your .git/config file, it will appear in the dropdown list of the Push dialog.
For example, here are the remotes specified in my .git/config file:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = /Users/loki/sandbox/git/parent
[remote "github"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:jbklikh/git_test.git
Here is the screenshot of the Push dialog:
can you add the word git to your title? I don't want to be routed to unrelated posts. I want to push to multiple deployment severs/remotes.