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

After linking to a source control, if I create a branch of it, I am loosing data from all the tables in the application? This look very awkward as we loose master data in many tables. Is there any way , how to integrate with source control and manage without loosing data while creating branches or while importing latest application from repository?

Data is not kept in the application files. Its the way servicenow is designed, and its better to separate data from the application that is running it. It takes up space in the repo.

 

You can always do data archiving and retention in servicenow on the instance or export records, but data should not be in source control.

This is the easiest most straight forward solution that i've seen.

Thanks Greg.

Tim Woodruff
Mega Guru

I recently wrote a 'ServiceNow Pro Tips' article on this, which teaches you: 1. How to change which GitHub / repository your ServiceNow application in Studio 2. How to update your GitHub repo credentials in ServiceNow 3. How to generate ECDSA SSH keys and link your ServiceNow application with GitHub using SSH (including the new GitHub rule against using insecure RSA keys) - since GitHub no longer supports basic auth or RSA SSH keys 4. How to generate/link your SSH API key-pair with GitHub and ServiceNow, using your public/private keys You can see the full article with detailed step-by-step instructions, here: https://snprotips.com/blog/2022/3/4/how-to-change-servicenow-applications-repositoryurl

I recently wrote a 'ServiceNow Pro Tips' article on this, which teaches you:

1. How to change which GitHub / repository your ServiceNow application in Studio
2. How to update your GitHub repo credentials in ServiceNow
3. How to generate ECDSA SSH keys and link your ServiceNow application with GitHub using SSH (including the new GitHub rule against using insecure RSA keys) - since GitHub no longer supports basic auth or RSA SSH keys
4. How to generate/link your SSH API key-pair with GitHub and ServiceNow, using your public/private keys

You can see the full article with detailed step-by-step instructions, here:
https://snprotips.com/blog/2022/3/4/how-to-change-servicenow-applications-repositoryurl