Skip to main content

How to store resources when doing a clone?

Comments

2 comments

  • cPRex Jurassic Moderator

    Hey hey!  The only way I know of that you can store data outside of public_html would be with manual edits to the configuration as we don't allow that in the cPanel user interface.  This feature is designed to help users deploy their site if it's from a Git repository, so it's not intended to be used for outside development tasks.

    0
  • Monaj Sing

    Hi,

    You’re correct, when you run:

     
    git clone git://git.moodle.org/moodle.git
     

    Git will clone the repository into a new folder (named moodle) inside your current directory.

    If you want to store it in a specific folder (for example, outside public_html)You have two options:

    Option 1: Run clone from the target directory

    Option 2: Specify the full target path directly

     

    0

Please sign in to leave a comment.