Hi Kev Lai, any thing that requires a user input cannot be automated by definition. I think this works

git clone https://username:password@github.com/username/repo_name.git

But you would be exposing username/password in the repo which is not recommended. May be put this in env variable of Gitlab and then use the above command with the ENV variables.

Let me know how it goes

Senior Staff Engineer @freshworks. Ex-McKinsey/Microsoft/Slideshare/SAP, Tech Enthusiast, Passionate about India. Opinions are mine

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store