To update your application's Git origin URL, the Git URL must be first retrieved from the Cloud Platform 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 Cloud Platform 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.gitAfter you have the new Git URL, you can update your application's Git URL by running the following commands:
Retrieve existing origin URL information.
$ git remote get-url originExample expected output:
[email protected]:spark.gitUpdate command to new origin URL.
$ git remote set-url origin [APPLICATION_NAME]@[SVN_ID].[REALM].hosting.acquia.com:[APPLICATION_NAME].gitExample command:
$ git remote set-url origin [email protected]:spark.gitVerify the new origin URL.
$ git remote get-url originExpected output form:
[APPLICATION_NAME]@[SVN_ID].[REALM].hosting.acquia.com:[APPLICATION_NAME].gitExample output:
[email protected]:spark.git