Sunday, July 28, 2024

Git: get remote URL of local Git Repo

From a console window where the current folder corresponds to a local git repo, run the following from a console:

git remote -v

An example output from this command is as follows:

origin  https://softwarepronto.visualstudio.com/Blog/_git/Scratch (push)