title: How to publish pipeline in Azure Data Factory enabled with DeVOPS GIT repo using .NET Data Factory SDK (C# )?
body: <p>I’m facing some issue in deploying the pipeline to Data Factory with GIT enabled (DevOps) and need someone help or advise on that.</p>
  
  <p>When I deploy the pipeline through below code snippet its deploying into Data Factory Repo but instead we need to publish the code to Azure DevOps GIT Repo.</p>
  
  <p>Below is a code snippet used to publish pipeline to ADF using .NET Data Factory SDK (C#)</p>
  
  <p>// Authenticate and create a data factory management client  </p>
  
  <pre><code>var context = new AuthenticationContext("https://login.windows.net/" + tenantID);
  ClientCredential cc = new ClientCredential(applicationId, AuthenticationKey);
  AuthenticationResult result = context.AcquireTokenAsync("https://management.azure.com/", cc).Result;
  ServiceClientCredentials cred = new TokenCredentials(result.AccessToken);
  DataFactoryManagementClient client = new DataFactoryManagementClient(cred) { SubscriptionId = subscriptionId,  };
  </code></pre>
  
  <p>// Below snippet deploys pipeline into data factory Repo</p>
  
  <pre><code>client.Pipelines.CreateOrUpdate(resourceGroup, dataFactoryName, pipelineName, pipeline);
  </code></pre>
  
  <p>But now we need to publish this pipeline code to master branch for the DevOps GIT enabled in our ADF.</p>
  
  <p>Below is one code snippet I found but not sure how to set this object to data factory in deploying the pipeline to DevOps GIT.</p>
  
  <pre><code>FactoryRepoConfiguration repo = new FactoryVSTSConfiguration("account Name", "Repo name", "branch name", "/", "project name");
  </code></pre>
  
  <p>I have gone through many blogs but didn’t find any help on that.</p>
  
  <p>So could someone please help me on this? </p>