title: How to get the full path of a file in a Git remote repo
body: <p>I am working with Git, I want to get the full path of a specific file on a Git server that is cloned to a local repo.</p>
  
  <p>Example:
  The file in the local repo is:</p>
  
  <pre><code>/home/.../source/android/frameworks/av/media/libstagefright/CameraSource.cpp
  </code></pre>
  
  <p>I want to get the link to this file on the Git server like this:</p>
  
  <pre><code>https://android.git.sec..../plugins/gitiles/platform/frameworks/av/+/refs/heads/main/o-one/media/libstagefright/CameraSource.cpp
  </code></pre>
  
  <p>How can I do that with a Bash command on Linux?</p>