Issue
I have a private git repository on Codaset. Normally when I try to clone it over HTTPS on my Windows machine, it asks me for my username and password. When I try to clone it on an Ubuntu server, it never asks me for a username or password and it fails with a 401 error. What do I need to do differently?
Here is what I am doing:
git clone https://codaset.com/username/project_name.git destination_folder_name.git
Solution
I got it to work using this format:
https://username:[email protected]/username/project_name.git destination_folder
However according to these 2 posts, using that method could be a security problem:
Can a username and password be sent safely over HTTPS via URL parameters?
Username and password in https url
Answered By - still_dreaming_1 Answer Checked By - Cary Denson (WPSolving Admin)