Specify Git Remote Repository

Hi,

I rebuilt my project from scratch (had problems with the debugger) and made a few changes to it. I have a remote repository set up, so I deleted the old code that was up there and pushed the new code in its place. When the 'Push Changes' dialog box came up I entered the git repo url and it worked fine.

I made more changes and when I went to push them I noticed that the 'Remote' field in the 'Push Changes' dialog box was not pre-filled in with the remote repo url I had previously entered. It used to be pre-filled in with the string 'origin', and when you clicked the drop-down for that field you saw the complete git repo url that 'origin' points to.

My question is this: How do I get RubyMine to remember the git repo url between invocations? I searched the Help and these Forums and couldn't find an answer.

Thanks,
Larry

9 comments
Comment actions Permalink

Hi,

Just wanted to let you know I resolved this by popping out to the command line and running a 'git remote add orign <repository url>' command.

Still, it would be nice to know if there's a way to do this within the IDE.

Thanks,
Larry

0
Comment actions Permalink

Seems you need specify "tracked branch", but "Version Control | Git | Current Branch.." dialog doesn't allow to specify new remote repo. I'll forward your question to a developer responsible for Git integration.

0
Comment actions Permalink

Definitely useful to have.

Is there a feature request item we can subscribe to keep track of this feature request?

0
Comment actions Permalink

I have a similar but slightly different usecase - our platfrom has 15-20 separate repos that together provide pieces of the solution. It's a rails environment, and there are a handful of "Deployed" projects and many gem projects that are consumed by the former.

I'm looking for a solution where I can have a new developer checkout a single repo which includes references to all the other projects, and then have RM/IJ facilitate pulling down the master branches for all the modules in the project.

 

Any advice on that?

0
Comment actions Permalink

@Andi,

as far as I understood you need git submodules and `git clone --recursive`. We have a similar request on our tracker:

https://youtrack.jetbrains.com/issue/IDEA-75835

0
Comment actions Permalink

@olga, alas sub-modules:

a) are a pain to work with (I used them in a previous live, and will never again). To make a change to a module, you need to commit to the module itself, and then again into the repo that consumes the module to pick up the updated version of the module)

b) they're not very applicable here, since the rails project is structured to use bundler,

 

I'm looking for something more like the POM/IntelliJ solution - where when you import a POM project you can click a button to download sources. But rather than just downloading sources from an archive, I'd like to have all "git" references form the Gemfile be cloned into a locally configured directory.

For extra bonus, getting a dialog box that allows be to select which of the git/github references from the Gemfile to clone locally would be awesome.

0
Comment actions Permalink

@Andi,

that sounds similar to another request, could you please take a look:

https://youtrack.jetbrains.com/issue/RUBY-11123

0
Comment actions Permalink

Close, but still no cigar. RUBY-11123 is probably solved by Bundler itself: see:  Local Git Repos under http://bundler.io/v1.3/man/bundle-config.1.html

I'm looking for ability to clone all repos, so I have a local copy to point bundler to - it's essentially the prequel to RUBY-11123 

 

 

0
Comment actions Permalink

@Andi,

could you please add your request as a comment to the issue I've mentioned since they seem to be very close.

0

Please sign in to leave a comment.