To combine several Azure DevOps repositories into one, follow these steps:
- Clone the Repositories Locally: Use git clone to clone each repository to your machine.
- Add a remote to each repository: Use git remote add to link the repositories you wish to merge.
- Make Separate Branches: To maintain the History of each repository, make a branch in the destination repository (git checkout -b ).
- Combine repositories: Branch per branch, retrieve and combine each repository's contents into the destination repository (git pull ).
- Keep History Safe: Use git-filter-repo or comparable tools to guarantee that each repository's commit history is preserved.
- The Combined Repository should be pushed: On Azure DevOps, push the merged repository to a single remote repository.
You maintain the commit history by doing these actions.