how to get current url of repository git code example
Example 1: git command to get the repo url
git remote show origin
Example 2: git get repository url
git config --get remote.origin.url
git remote show origin
git config --get remote.origin.url