here are my system details
- Ubuntu 24.04
- git v 2.43.0
usually, to check remote url from terminal, we write below command
git remote -v
and get below outout
[email protected]:<username>/<whatever>.git
which is correct as I do clone using SSH always and I want as it is BUT looking for any git command which gives the output in https because if we copy and paste in address bar then it does not open, for that we we need http/https one.
please note, I do not want to change origin from ssh
to http
below is dummy code
> git remove -v -h
https://github.com/<username>/<whatever>
1