Reputation: 1
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
Reputation: 30362
If you are trying to push it to a different empty new repository, please follow below steps to do that.
Open Visual Studio 2019, Git -> Local Repositories -> Select the local cloned repo to open.
Then go to Git -> Manage Remotes -> Select the origin remote to edit -> Change the remotes to the new empty repo
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