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?
for example:
src/main/java/myfile.java
I wish to run a command
git ????? src/main/java/myfile.java
which will then return the remote url for this file
https://github.com/repo/bla/src/main/java/myfile.java
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 github
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.