Create a clone function for git repositories