How do I show origin url in Git to find the original clone source of a local repo?

I cloned a GitHub project that has multiple forks, but I forgot which fork I originally pulled from.

Is there a way to show origin URLin Git (or something similar) to check the remote URL and identify the exact fork or origin I cloned?

Looking for a simple Git command to show this info from the local repo.

You can use the classic git remote -v command, which gives you both fetch and push URLs for your remotes. It’ll look something like:

origin  https://github.com/username/repo-name.git (fetch)
origin  https://github.com/username/repo-name.git (push)

This is the easiest way to spot which fork or upstream repo your local clone came from. It works regardless of whether the project has been updated or changed since.

If you’re trying to dig a little deeper, for example, if you have multiple remotes or renamed the default origin, use:

git remote get-url origin

This gives you just the URL tied to origin, no clutter. It’s useful when scripting or comparing remotes quickly. You can even run this for other remotes like upstream if you added them manually.