How to fix the data factory adf_publish branch being out of sync with the master branch in azure devops

How to fix the data factory adf_publish branch being out of sync with the master branch in azure devops:

The data factory adf_publish branch can go out of sync if you change the path of the master branch file to another folder and delete the files from the old path. To solve this, please follow the steps below.

Steps:
  • Remove your current Git repository from Azure Data Factory v2
  • Reconfigure Git in your data factory with the same settings, but make sure Import existing Data Factory resources to repository is selected 
    • choose New branch
    • enter a new branch name
  • Create a pull request to merge the changes to the collaboration branch (master branch)
    • You can do this also by going to Azure Devops > Repos > Pull Requests
      • Create a new pull request 
      • Select your new branch and merge it into master

Comments