title: How to use environment variable for Git remote URL
body: <p>I maintain a small set of my own git repositories and from time to time, I'd like to change the machine or directory where I'm storing the 'master' repositories. Unfortunately, this causes all the working copies of the repository to break.</p>
  
  <p>Is there a way to use an environment variable in a 'remote' path for my local working copy?</p>
  
  <p>If not, is there a simple way I can trick Git (barring a brute force sh script that expands a variable, removes and reassigns it to a remote location before pushing, etc.) into expanding a variable when pushing and pulling?</p>