Reputation: 275
I have a java project that used to deal with a remote repository that now doesn't exist any more. It has a history I'd like to keep and I need to create another remote bare repository where push to and pull from, for the future commits. How can I do this, just starting from the only copy I have now, the local one (which is already some commits ahead)?
Upvotes: 0
Views: 1582
Reputation: 350
Eclipse has a Git Perspective that helps you achieve this.
Head over to Window -> Open Perspective -> Other
and choose Git
from the dialog
You would be presented with the Git Repository
view.
Expand the Remotes section, and Click on Create Remote...
Fill in the details of your new repository.
You can then choose to remove the previous remote and rename the newly created one as origin.
Upvotes: 1