I want to clone gitlab repository without prompt for my automation script, by using my private token from my gitlab account.
Can someone provide me a sample?
I know I can do so with user and password:
git clone https://" + user + ":" + password + "@" + gitlaburl;
and I know it is possible with ssh key
but, both options are not sufficent
I know this is old but this is how you do it:
git clone https://oauth2:[email protected]/vendor/package.git