title: Git subtree - subtree up-to-date but can't push for Windows
body: <p>My Subtree says it's up to date, but I can't push new files</p>
  
  <pre><code>git subtree pull --prefix=CASE-SENSITIVE-PATH-TO-FOLDER remote-alias master
  </code></pre>
  
  <p>I am following <a href="https://stackoverflow.com/questions/13756055/git-subtree-subtree-up-to-date-but-cant-push">Git subtree - subtree up-to-date but can't push</a>.</p>
  
  <p>But need a solution that works <strong>only</strong> for windows. The one provided does not work.</p>
  
  <p><strong>Error:</strong></p>
  
  <blockquote>
    <p>! [rejected]          d6a4b0aef2c196a0d80177a96586dd1e6f3c8544 -> master (non-fast-forward)</p>
    
    <p>error: failed to push some refs to '<a href="https://repourl/repo.git" rel="nofollow noreferrer">https://repourl/repo.git</a>'</p>
    
    <p>hint: Updates were rejected because a pushed branch tip is behind its remote</p>
    
    <p>hint: counterpart. Check out this branch and integrate the remote changes</p>
    
    <p>hint: (e.g. 'git pull ...') before pushing again.</p>
    
    <p>hint: See the 'Note about fast-forwards' in 'git push --help' for details.</p>
  </blockquote>
  
  <p><strong>Here is what I've tried</strong></p>
  
  <pre><code>git subtree split --prefix path-to-folder master
  </code></pre>
  
  <p>Executing the above code gives me the following error</p>
  
  <p><strong>Error:</strong></p>
  
  <blockquote>
    <p>fatal: ambiguous argument 'master': unknown revision or path not in the working tree.
    Use '--' to separate paths from revisions, like this:
    'git  [&lt; revision>...] -- [&lt; file>...]'</p>
  </blockquote>
  
  <p>Running both below work, they both give me the token 'd6a4b0aef2c196a0d80177a96586dd1e6f3c8544', but I am having trouble trying to figure out how to "force" the branch</p>
  
  <pre><code>git subtree split --prefix CASE-SENSITIVE-PATH-TO-FOLDER
  
  git subtree split --prefix CASE-SENSITIVE-PATH-TO-FOLDER -b master
  </code></pre>