2

I have a git repository that has been imported to azure repos but when I make a new commit it doesn't reflect the new commit on azure, is there some config I need to enable to allow this?

Sorry if the question seems dumb but I have been navigating through the UI and I can't see how to achieve this

thank you for all your help

1
  • Where is the git repository hosted? For GitHub: does this help: stackoverflow.com/questions/55233148/…? You can also just push your changes to two remotes. Commented Feb 17, 2021 at 22:13

1 Answer 1

0

There are many ways to achieve your needs. You can refer to the sample I implemented using Azure pipelines(I assume your repository is imported from GitHub to azure repos):

1.Create a pipeline and choose your GitHub repo as source:

enter image description here

2.Here is my configuration of the yaml file:

trigger: - '*'//This pipeline will run whenever you push an update to the GitHub repo pool: vmImage: 'windows-latest' steps: - task: gitmirror@0//You can install this task in marketplace inputs: GitRepoUrl: 'https://{PAT}@dev.azure.com/{Organization Name}/{Project Name}/_git/{Repo Name}.git'//This is the URL of Azure Repo, you need to add a personal access token in the URL 

3.Now, when you update the files in GitHub, it will trigger the pipeline in Azure DevOps and then update your Azure repository.

Sign up to request clarification or add additional context in comments.

2 Comments

Hello thank you for your response, is there any way to do this more easily? Like just turn on an option or something, the reason im asking is because I have around 250 repos to import, and to do this for every pipeline even so, create a pipeline for each repo seems like a lot :/
As far as I know, Azure DevOps does not have such a feature or extension like this. You can also refer to this ticket.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.