title: Local Git Deployment to Azure App Service
body: <p>Im trying to set up deployment from my local GIT to my Azure Web App using this guide <a href="https://docs.microsoft.com/en-us/azure/app-service/app-service-deploy-local-git" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/app-service/app-service-deploy-local-git</a></p>
  
  <p>It is pretty straight forward, but I have some issues. This approach deploy my whole repository to the root, and I do not want that.</p>
  
  <p>My Web App is using a CMS, which mean that a lot of files in the Web App is not in my git repo. And also some files in my git repo is not and should not be present in my Web App.</p>
  
  <p>Lets say my Web App looks like this.</p>
  
  <ul>
  <li>Root
  
  <ul>
  <li>Site
  
  <ul>
  <li>System</li>
  <li>Images</li>
  <li>Templates</li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>System and Images are not in my git, but Templates are.</p>
  
  <p>This is how my git looks like.</p>
  
  <ul>
  <li>Custom code</li>
  <li>Templates</li>
  </ul>
  
  <p>So when I go ahead and push changes both my <code>Templates</code> and <code>Custom code</code> are deployed into the <code>Root</code> of the Web App.</p>
  
  <p>That is wrong in two ways. First of all I only want to deploy changes in the <code>Templates</code> folder. Second of all I want to deploy the changes into the <code>Site</code> folder not <code>Root</code>.</p>
  
  <p>Is it possible to fix this in some way?</p>