title: How to sync unsynced commits in GitHub Windows client?
body: <p>How do i sync unsynced commits in GitHub for Windows?</p>
  
  <hr>
  
  <p>i made some changes to a file a month ago. i just realized today that they didn't go anywhere; the GitHub web-site has no history of my changes. </p>
  
  <p>The client has no indication that anything is out of date (there are no <em>"uncommitted changes"</em>). But there <strong>are</strong> <em>"unsynced commits"</em>:</p>
  
  <p><img src="https://i.stack.imgur.com/dmYP3.png" alt="enter image description here"></p>
  
  <p>How do i sync unsynced commits?</p>
  
  <h1>I tried nothing, and i'm fresh out of ideas</h1>
  
  <p>i tried clicking the <code>sync</code> button (whatever that means), but all i get (after a progress bar moves for about 7 seconds) is:</p>
  
  <blockquote>
    <p>failed to sync branch<br>
    You might need to open a shell and debug the state of this repo.</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/gKxFV.png" alt="enter image description here"></p>
  
  <p>Clicking <strong>OPEN SHELL</strong>, causes a powershell prompt to appear, where i type:</p>
  
  <pre><code>debug the state of this repo
  </code></pre>
  
  <p>But that doesn't seem to do it:</p>
  
  <p><img src="https://i.stack.imgur.com/Ctr5A.png" alt="enter image description here"></p>
  
  <p>How do i sync unsynced commits in the <strong>GitHub for Windows</strong> client?</p>
  
  <h1>Bonus Reading</h1>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/17729462/how-to-sync-unsynced-commits">How to sync unsynced commits?</a> (when your <em>"head"</em> is <em>"detached"</em>)</li>
  </ul>