git clone https://<user-name>:<token>@github.com/<user-name>/<project-name>.git
Suppose an HTTPS request as above. I want to know, how secure would be this request/call?
More specifically, since my token (a secret) appears in the URL/call, would it make me more vulnerable to losing the token?
What would you say is more secure? Using the above URL method, or using the default approach (I enter the repository's URL, then Github asks me for the username and password/token)?