With Copilot
Acquia Copilot is a conversational AI connected into our product documentation and knowledge base. Ask Copilot about product features, technical details, troubleshooting and how to get started with Acquia products.
Sign in to use Acquia Copilot
Occasionally you may need to remove and replace your current code repository, while keeping the existing code intact.
To copy your code from an existing Cloud Platform repository to a new repository:
Open a command prompt window, and then run the following command to ensure you have the most up to date code commits:
git logUse the following command to add the new code repository as a remote, which will enable you to push code to the new repository using the same method as the origin:
git remote add new-originValidate that the new remote origin has been added properly by using the following command:
git remote -vPush the mirrored code to the new origin:
git push --mirror new-origin
git push --all new-origin
git push --tags new-originWith the following commands, rename the origin to be the new repository:
git remote rename origin old-origin
git remote rename new-origin originYour code repository should now have a clean, working copy of the previous code.
If this content did not answer your questions, try searching or contacting our support team for further assistance.
If this content did not answer your questions, try searching or contacting our support team for further assistance.