Loading...


Related Products


Date Published: February 11, 2025

Updating Applications Git URL

In order to update your application's Git origin URL, the Git URL needs to be first retrieved from Cloud Platform infrastructure Acquia Cloud login.

To find out your application's Git URL for environments running on the Cloud Classic infrastructure, you can retrieve the information by navigating to Applications > [Environment_Name] > Overview page in the Acquia Cloud login.

In the Environment Details section you can retrieve the Git URL. It will be of the form:

[APPLICATION_NAME]@[SVN_ID].[REALM].hosting.acquia.com:[APPLICATION_NAME].git

For example:

[email protected]:spark.git

 

Once you have the new Git URL, you can update your application's Git URL by running the following commands: 

 

1: Retrieve existing origin URL information

$ git remote get-url origin

Example expected output:

[email protected]:spark.git

 

2: Update command to new origin URL

$ git remote set-url origin [APPLICATION_NAME]@[SVN_ID].[REALM].hosting.acquia.com:[APPLICATION_NAME].git

Example command:

$ git remote set-url origin [email protected]:spark.git

 


3: Verify the new origin URL

$ git remote get-url origin

 

Expected output form:

[APPLICATION_NAME]@[SVN_ID].[REALM].hosting.acquia.com:[APPLICATION_NAME].git

 

Example output:

[email protected]:spark.git

 

Did not find what you were looking for?

If this content did not answer your questions, try searching or contacting our support team for further assistance.

Back to Section navigation