user
How to get the current git repository url ?
alphonsio

To get the current Git repository URL, you can use the git config command with the remote.origin.url option. This will display the URL of the remote repository that your local repository is connected to. Here's the command you can use:

git config --get remote.origin.url

This command will return the URL of the remote repository associated with the origin remote. If your repository is not connected to a remote, or if it's connected to multiple remotes, you may need to modify the command to specify the correct remote.

For example, if your repository is connected to a remote named upstream, you can use the following command to get the URL of that remote:

git config --get remote.upstream.url