title: How to find remote full url of a specific file managed with git?
body: <p>I have a git repository (managed also in remote) how can I find the current remote full path to a file with a single command?</p>
  
  <p>for example:</p>
  
  <p><code>src/main/java/myfile.java</code></p>
  
  <p>I wish to run a command</p>
  
  <p><code>git ????? src/main/java/myfile.java</code></p>
  
  <p>which will then return the remote url for this file</p>
  
  <p><code>https://github.com/repo/bla/src/main/java/myfile.java</code></p>
  
  <p>is there a way to achieve that?
  The motivation for that is that I want to immediately get this path so i can send the url to another developer so when he clicks the url it will open the file for him in browser (if this file is hosted in <code>github</code> for example) and I want a single command for that, not to go through the whole process of getting the github base uri and then concatenating the relative path of the file i wish for a single command which will do that work for me.</p>