git remote get-url origin

Category: Git - Core

git remote get-url origin

Print a remote's URL

Shows the URL Git uses for the named remote, useful for confirming https versus SSH endpoints. Add --push to see the push URL when it differs. Scripts use it to detect the hosting platform.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.