How do you edit/remove a source control repository?

charlesgibisser
Tera Contributor

ctomasi

I have a scoped application in Helsinki that has been linked to a source control repository.   How would I go about editing the repository url to a different repo or remove the link to source control completely?

Thanks,

Charles

1 ACCEPTED SOLUTION

Charles / Chuck:



So, I found something very interesting.   There appears to be a deliberate out-of-the-box method for doing this.   Just not through the Studio!   I went ahead and wrote it up as an article.



Mini-Lab: Re-pointing a Repository URL For the Studio IDE



Steven.


View solution in original post

18 REPLIES 18

Chuck Tomasi
Tera Patron

Hi Charles,



Changing the repo URL:


  1. Export your app to XML (just in case)
  2. Export the data you want to save to XML.
  3. Go to sys_app.list, locate your app and delete it.
  4. Start Studio and import from the new URL
  5. Restore the data from XML.


Removing the link to source control:


  1. Export your app to XML (Update set) and export that.
  2. Export the data you want to save to XML.
  3. Go to sys_app.list, location your app and delete it.
  4. Import your app from XML.
  5. Restore the data from XML.


I don't know if I would recommend the last one. Just because something is linked to Git and you're not using it, doesn't mean you have to remove the link.


Process is not as user friendly as it could be, but it is a viable solution to my problem.



Perhaps, in the future, we will just be able to directly edit the url in the 'Edit Repository Configuration' dialog.



Thank you,


Charles


Thanks for the information Charles.



Out of curiosity, what would you like the system to do with the local changes if you switch repositories? It would seem that a 'throw away' is in order since it would be relatively difficult to reconcile what's in the repo vs. what's local - it may not even be the same app! Just curious how you envision this working if one were to change the URL and credentials.


Thanks Chuck.   I endorsed your solution.   It is truly unfortunate that this functionality was not built into the application to begin with as it is quite a common need.  



Use case:   Changing from a personal repository to a corporate repository.



Use case:   Reorganization of the repository's directory structure requires changing of the Studio url. <--- BIG!



Use case:   Unbinding source control from the Studio project (as was mentioned above).



Thanks for the work-around it is really helpful (and the only way it can be done for now...including in Istanbul).   Maybe the Studio team can fit this simple functionality into Jakarta?   Maybe?   🙂



Steven.