This assumes you are already cloned a repository from the source Git repo (typically called "origin") to a directory on your PC, such as the foo.git or bar.git repos.
The git remote command can be used to view the shorthand name of the repository that you have cloned.
Typically, the shorthand name of the source Git repository is "origin".
The -v or --verbose flag can be used to include the full URL to the remote Git repository.
git remote --verbose
Which will return something like this.
origin ssh://firstname.lastname@example.org:7999/path/to/example.git (fetch) origin ssh://email@example.com:7999/path/to/example.git (push)
The git remote show command will display even more details.
git remote show origin
* remote origin Fetch URL: ssh://firstname.lastname@example.org:7999/midengops/example.git Push URL: ssh://email@example.com:7999/midengops/example.git HEAD branch: master Remote branches: develop tracked master tracked Local branch configured for 'git pull': master merges with remote master Local ref configured for 'git push': master pushes to master (local out of date)