clone function

Clone a remote repository