title: Get Git repo url using absolute path
body: <p>I can get the repository path running the following command in the repository folder (like it was suggested <a href="https://stackoverflow.com/a/4090938/1420197">here</a>):</p>
  
  <pre><code>git config --get remote.origin.url
  </code></pre>
  
  <p>How can I get the git repository url using an absolute path?</p>
  
  <p>Suppose that I am in another folder and I want to get the repository url from another folder, using an absolute path.</p>
  
  <p>I tried this, but doesn't work.</p>
  
  <pre><code>git config --get remote.origin.url --path /home/username/myFolder
  </code></pre>