[git]find the repository URL from a cloned folder

This article can be read in about 1 minutes.
PR

The purpose

I will find the repository’s URL or local path from the Git-cloned folder.

PR

How to find out

Open the .git/config file in the cloned folder.

The URL will be listed under the following item. (It is written in the same place for both local and remote repositories.)

[remote "origin"]
url =
PR

Result

I was able to find the repository’s URL and the local repository path from the Git-cloned folder.

PR

Other way

by command

git remote -v

comment

Copied title and URL