0

I am trying to clone azure repo using git command git clone https://{userName}:{password}@dev.azure.com/<Organization>/<Project>/_git/<repoName> <local destianation> This work fine in my local machine.

But when I run this in the azure pipeline I got an error 'clone into ..' error.

What mistake I am doing?

riQQ
  • 9,878
  • 7
  • 49
  • 66
user6264
  • 175
  • 1
  • 7
  • 22
  • Thank you Shayki Abramczyk. I tried as they mentioned in the above link. Command executed successfully without any error. But where this cloned repo will get stored? – user6264 Nov 27 '19 at 07:13
  • In the command-line task you can `cd` to a folder before the clone, or specify a working directory. – Shayki Abramczyk Nov 27 '19 at 07:17
  • I am running this command in azure pipeline inline script. Is this a right approach? – user6264 Nov 27 '19 at 07:20
  • Yes, it's perfect. just add a line of `cd path/to/your/folder` before the `git clone` – Shayki Abramczyk Nov 27 '19 at 07:21
  • you mean my local folder or new folder in the azure repo. I tried creating a new folder in the azure repo and used cd am I correct. – user6264 Nov 27 '19 at 07:27

0 Answers0