title: Create remote git repository on Windows machine from Pi
body: <p>I have a project I built on a raspberry pi, including a git repository.  I'd like to make it that when I type <code>git push</code>, it would push to my windows machine (I've had an SD card fail on me in the past, and it cost me lots of code, so I'd like an external backup).   I've tried many tutorials, all of which fail due to some reason or other.  My latest, is I'm trying to follow <a href="https://elegantcode.com/2011/06/18/git-on-windows-creating-a-network-shared-central-repository/" rel="nofollow noreferrer">this one</a></p>
  <p>I have a windows 10 machine.   I went to <code>Control Panel</code>, <code>System and Security</code>, <code>System</code>, and copied the computer name from <code>Computer Name</code>  (<code>DESKTOP-UFCQ4N8</code>).</p>
  <p>I created a folder called <code>f:\Shared\Git\thermostat</code>.    In windows explorer, I right-clicked on here, selected <code>Properties</code>, <code>Sharing</code> tab, and then clicked <code>Share</code>.   I added <code>Everyone</code> to users, and clicked <code>share</code></p>
  <p>I then did:</p>
  <pre><code>f:\Shared\Git\thermostat&gt;pushd \\DESKTOP-UFCQ4N8\thermostat
  
  Z:\&gt;mkdir MyGitRepo1
  
  Z:\&gt;cd MyGitRepo1
  
  Z:\MyGitRepo1&gt;git init --bare
  Initialized empty Git repository in Z:/MyGitRepo1/
  
  Z:\MyGitRepo1&gt;popd
  </code></pre>
  <p>I finally try the following:</p>
  <pre><code>pi@raspberrypi:~/devel/thermostat $ git remote add origin file://DESKTOP-UFCQ4N8/thermostat/MyGitRepo1/
  pi@raspberrypi:~/devel/thermostat $ git push origin master
  fatal: '/thermostat/MyGitRepo1/' does not appear to be a git repository
  fatal: Could not read from remote repository.
  
  Please make sure you have the correct access rights
  and the repository exists.
  pi@raspberrypi:~/devel/thermostat $
  </code></pre>
  <p>But it does not seem to recognize the repo.   I've spent quite a bit of time playing with different permutations of this, but can't seem to figure out what I'm missing.  Does anyone know what I'm doing wrong?</p>