how to get repository url in git code example Example 1: git command to get the repo url git remote show origin Example 2: github see the origin git remote -v