Changing a project from Github to Bitbucket
Hi,
How do I change a project from using github to bitbucket? The project defaults to github, even after selecting 'Share at bitbucket' (or something like that) it sticks with github and I cannot push to bitbucket.
I have spent a while going through the options but cannot seem to find the answer.
Thanks,
Kevin
Please sign in to leave a comment.
Just to update - I could find no way to do this. I had to delete and restart the project.
You need to go to Settings | Version Control and change the VCS used for the project from Git to Mercurial.
No, I was using Git on Bitbucket. There is no way to change from git/github to git/bitbucket. I did select it, but it remained with it's settings from github. On refelection I am wondering if deleting .git folder would help.
It would be good if there was a way to get it to "forget" it's current git settings and allow you to move the project. At present this does not work (give it a try if you want - creat a project, assign and push it to your git hub, then try and change it to bitvucket - you will see what I mean).
I should add that there is a rational behind this that I think would apply more widely. I keep my private stuff in bitbucket. I was moving a repo over to make it private for the time being, with the intention of making it public again once the code won't put me to shame ;)
What you actually need to do in this case is add a new Git remote pointing to your bitbucket repository, push your project there and set it as the default remote for your branch. There is no "switch from github to bitbucket" button that would do this automatically for you, but this certainly can be done without wiping your git repository and losing the history of your project.
"add a new Git remote pointing to your bitbucket repository, push your project there and set it as the default remote for your branch" This is not possible unless I do it using CLI. I do understand how to do this. My point was that it is not possible to it within Rubymine. Maybe this is a feature request?
I am new to Rubymine so apologies if this comes across in the wrong way. Ijust thought it would be intuitive/sensible to allow you to point to a new git repository and push from within the IDE. If that is what you meant, then no, it does not work at present (changing from one git repository to bitbucket). If you think it *is* possible then I would encourage you to try it out ;)
We don't have a goal of supporting 100% of git's command line features in our GUI. We consider it normal that some (more rarely used) operations can only be done from the command line.