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

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 Managing large files - GitHub Docs 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

you need to set up a .gitignore and not upload your xcode projects and temporary files to github

1 Like

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.

https://github.com/github/gitignore/blob/master/Unity.gitignore

1 Like

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! :slight_smile: Thank you for your help. Now, I can start uploading my progress of The City: Drone Escape to GitHub again!

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.

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