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

Temp/StagingArea Shared Assets "Large File Detected" (Can't Upload To GitHub)

Discussion in 'Editor & General Support' started by farcgs, Nov 26, 2016.

  1. farcgs

    farcgs

    Joined:
    Nov 1, 2016
    Posts:
    13


    For the past week, I've recieve this notice everytime I try to sync my project to GitHub.

    [p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo}
    GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
    Trace: 84c1cadbd209154c2067e806378fd523
    See http://git.io/iEPt8g for more information.
    File Temp/StagingArea/TheCityBeta.app/Contents/Resources/Data/sharedassets0.assets.resS is 350.02 MB; this exceeds GitHub's file size limit of 100.00 MB]


    I don't know what this means, but it's preventing me from making any more commits to GitHub. I'm looking for the Unity game folder, where the GitHub is synced, but the file doesn't exist. Help is much appreciated. Thank you.

    -
    The City: Drone Escape
    GitHub
    Facebook
    Tumblr
     
    Last edited: Nov 26, 2016
  2. Carpet_Head

    Carpet_Head

    Joined:
    Nov 27, 2014
    Posts:
    256
    you need to set up a .gitignore and not upload your xcode projects and temporary files to github
     
    karl_jones likes this.
  3. farcgs

    farcgs

    Joined:
    Nov 1, 2016
    Posts:
    13
    Thanks for the tip. I'm looking up how to do that, at the moment. I'm wondering where the files are coming from, if they're not in the game folder.
     
  4. TitoOliveira

    TitoOliveira

    Joined:
    Aug 4, 2014
    Posts:
    79
    karl_jones likes this.
  5. farcgs

    farcgs

    Joined:
    Nov 1, 2016
    Posts:
    13
    I couldn't figure out how to implement .gitignore, but I found a simple solution to my problem, which was to "Undo Most Recent Commit" a couple of times, which made it go back to before I was having the issue. Then, I resynced the folder and was able to make the update! :) Thank you for your help. Now, I can start uploading my progress of The City: Drone Escape to GitHub again!
     
  6. scootna

    scootna

    Joined:
    Sep 23, 2016
    Posts:
    4
    Just add a file with the name ".gitignore" with the contents of the file TitoOliveira linked you to in the root of your git project. You'll want to start using a gitignore file to avoid committing unnecessary files in the future.
     
  7. Carpet_Head

    Carpet_Head

    Joined:
    Nov 27, 2014
    Posts:
    256
    This is true, but if you have already added the files to your repository, then .gitignore will not stop git from tracking them - so you have to remove things manually and then use a gitignore