This answer appears in google search result for "git get remote url" and is wrong. You do not need to know configuration tree in order to get remote url.
'git remote show origin' seems to provide the response only when the remote is accessible and is not useful when tracing the problems with remote.
The correct way getting git remote is:
`git remote -v`