I have a local clone of the PowerShellForGitHub project.
I can get the project URL using the command:
PS C:\src\PowerShellForGitHub> git remote get-url origin
https://github.com/microsoft/PowerShellForGitHub.git
There is a file in the project named GitHubUsers.ps1
PS C:\src\PowerShellForGitHub> Get-ChildItem -File .\GitHubUsers.ps1
Directory: C:\src\PowerShellForGitHub
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 2022-09-23 08:37 14690 GitHubUsers.ps1
The URL for this file on the GitHub site is:
https://github.com/microsoft/PowerShellForGitHub/blob/master/GitHubUsers.ps1
How can I get this file URL from the command line in my local repo?