i cloned a project from an azure repo. How can i push it to a different repository ? Azure DevOps

i cloned a project from an azure repo. How can i push it to a different repository ? Azure DevOps. I tried doing it in visual studio but it just keeps on connecting to its original source

Upvotes: 0

Views: 699

Answers (1)

Andy Li-MSFT
Andy Li-MSFT

Reputation: 30362

If you are trying to push it to a different empty new repository, please follow below steps to do that.

enter image description here

  1. Open Visual Studio 2019, Git -> Local Repositories -> Select the local cloned repo to open. enter image description here

  2. Then go to Git -> Manage Remotes -> Select the origin remote to edit -> Change the remotes to the new empty repo

enter image description here enter image description here

  1. Open Git changes -> Click the Push button to push changes to the new repo. enter image description here
  2. Check the changes in remote repo

enter image description here

If you are trying to push the cloned repo (e.g A) to an existing different repository (e.g B), then you can connect to the project and clone the repo B to local, and then copy sources from A to B, then push changes to B.

Upvotes: 1

Related Questions