Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Download project in parts/chunks

Discussion in 'FPS.Sample Game' started by Athomield3D, Dec 6, 2018.

  1. Athomield3D

    Athomield3D

    Joined:
    Aug 29, 2012
    Posts:
    193
    Downloading/Cloning 18 GB in one sitting is pretty painful especially in it interrupts at nearly the end. Can I clone/download the project in parts/chunks ?
     
  2. AggressiveMastery

    AggressiveMastery

    Joined:
    Nov 19, 2018
    Posts:
    206
    Howdy Athomield3D,

    You can download each file... by hand, but that would take a long time.
    How do I download individual files from GitHub?
    1. Go to the file you want to download.
    2. Click it to view the contents within the GitHub UI.
    3. In the top right, right click the Raw button.
    4. Save as...
    The next step would be to download each folder one at a time, which GIT will support via this post:
    https://coderwall.com/p/o2fasg/how-to-download-a-project-subdirectory-from-github

    What if you want to download only a subdirectory? The website(github) doesn’t have an option for that, at least not yet. Not a problem! Thanks to Subversion support in GitHub, you could use the svn command line tool to that effect, for example:

    git svn
    export https://github.com/USER/PROJECT/trunk/PATH DEST

    This creates a directory locally with the content of the specified subdirectory of the project.
    Just make sure to construct the URL correctly, using the format as above.

    So for the FPS Sample, I think you could use these GIT Commands to download/clone each sub-folder, breaking out some of the download size. It looks like the Assets > Textures folder is about 16 GB, so that may be where you need to sub-download smaller folders... Evironments is 10GB, Characters is 3.5 gigs so thoes are the next two largest folders...

    So something like:
    run - CMD
    git svn clone https://github.com/USER/PROJECT/trunk/PATH DEST

    But I am having some problems getting this to work. Any GIT masters out there that can tell me if this will work?

    Something like...
    Git svn clone --depth=1 https://github.com/Unity-Technologies/FPSSample/tree/master/Assets/Textures/Characters .
    For each directory... (depth=1 takes just the most up to date versions)

    Good Luck,
    Micah

    stackoverflow.com/questions/3954852/how-to-complete-a-git-clone-for-a-big-project-on-an-unstable-connection
     
    Athomield3D likes this.
  3. Athomield3D

    Athomield3D

    Joined:
    Aug 29, 2012
    Posts:
    193
    Thanks very well !
     
  4. AggressiveMastery

    AggressiveMastery

    Joined:
    Nov 19, 2018
    Posts:
    206
    I spent tooo long today on this.. hehe.

    It looks like you maybe able to use the GitZip Google:Chrome or FireFox Browser plug-ing to just click on directories, and then download them. However, you will need to log-in to GitZip/GitHub to use that download feature.

    I'm on a fat pipe, and don't like additional accounts... But these plugins look like the best bet. As SVN/Tort ect ... I just can't get them to work.

    https://kinolien.github.io/gitzip/
     

    Attached Files:

    Athomield3D likes this.