DEV Community

Discussion on: Multiple Repositories in a Single Azure Pipeline

Collapse
 
n3wt0n profile image
Davide 'CoderDave' Benvegnù

Hey, thanks.

If I understand correctly, you want to checkout from multiple repos and then push the whole thing to a single one?

Let's say you have 3 repo. Adding the 3 checkout instructions, one per repo, you will end up having the "3 parts" of code in:
/s/repo1
/s/repo2
/s/repo3

so what you'd need to do is simply make sure you are in the /s folder, and then do the "git magic" from there.

or, even better, you can make sure you checkout the destination repo first, in let's say /s/destination folder

then, checkout the other 3 repos in the same folder and you are ready to do git add ., commit, and push