What command shows the remote URL of a repository?
Posted by SamPetr
Last Updated: June 19, 2024
To show the remote URL of a Git repository, you can use the following command:
git remote -v
This command will list all the remote repositories associated with your local repository, including both the fetch and push URLs. If you want to see the URL for a specific remote (for example, origin), you can use:
git remote get-url origin
This will return just the URL of the specified remote.