Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  5. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    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:
    161
    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:
    38
    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:
    161
    Thanks very well !
     
  4. AggressiveMastery

    AggressiveMastery

    Joined:
    Nov 19, 2018
    Posts:
    38
    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.