How to clone/copy repo into another Azure DevOps project? I've seen fork option however it then gives possiblity of merging it back, which I don't want, I would like to copy/clone existing repo into new project and preserve its history.
-
Hi @Yoda, as Shamrai Aleksander has shared, you can import source files from an existing repository into a new empty repository on Azure DevOps. If it is helpful to you, please mark his answer as the solution of this topic. It may help more people who have the similar questions when they are looking for an answer. Thanks.Bright Ran– Bright Ran2020-12-25 06:24:39 +00:00Commented Dec 25, 2020 at 6:24
Add a comment
|
2 Answers
You can create a new repository and import data into it: https://learn.microsoft.com/en-us/azure/devops/repos/git/import-git-repository?view=azure-devops
Steps
- Create a new empty repo in another project.
- In your existing repo press Clone, Generate Git Credentials and remember URL and user data
- Use this information in the import repository wizard of the new repo.
2 Comments
Greg Trevellick
Worked a treat for me - Azure Devops even sends you an email when the import is complete, handy if you have a huge repo to import.
Shiraz
Thanks - I couldn't get this to work until following your instructions which include creating/using credentials



