Git command that could get you the url from origin
$git config –get remote.origin.url
But you would not be able to set a new path
$git config remote.origin.url “newPath”
This would fail with the message error: could not lock config file ./config: File exists