we in our team created a new repo in github https://new-parent-cicd-pipeline.git from an existing repo https://existing-parent-cicd-pipeline.git using the commands

$ git clone --bare https://existing-parent-cicd-pipeline.git Then, go into the repository. $ cd existing-parent-cicd-pipeline Finally, use theĀ --mirrorĀ flag to copy everything in your local Git repository into the new repo. $ git push --mirror https://new-parent-cicd-pipeline.git

When we pushed a few commits to the new repo 'https://new-parent-cicd-pipeline.git', surprisingly the same commits were also being commited into the existing repo 'https://existing-parent-cicd-pipeline.git'. We also forgot to update the groupid, artifactid, SCM connections in the new repo pom.xml. Later, we wanted to remove those commits from the existing repo so we thought removing those changes from the new repo will remove the commits from the existing repo, but, it did not happen. Now the new commits to new repo are not happening on the existing repo. Looks like there is some reference between the existing and new repos which we are unable to figure out. Any help is greatly appreciated. Thank you.

The original idea was just to copy all the files from the existing repo to the new repo. And now we want to remove that reference and if possible delete the new repo and create a new one from scratch, which we are scared of doing thinking any deletion on new repo will also delete files from the existing repo.

Did not try anything.

0

There are 0 answers