I'm having issues trying to push my Unity project to GitHub because the files that are too large are NOT being ignored. I have a .gitignore file that I added after I realized I had the issue of files being too large. Then afterwards I right clicked all of the relevant unstaged items and chose to "Stop Tracking." After I was happy with this, all of the files that I "stopped tracking" appeared in the "Staged Files" section as "Removed." Okay, that's fine. But then I push, and I get this error:
The files that I specifically selected to "stop tracking" and match the gitignore file are still being pushed, thus causing my error. What am I doing wrong?
Here is my gitignore file:
# This .gitignore file should be placed at the root of your Unity project directory # # Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore # /[Ll]ibrary/ /[Tt]emp/ /[Oo]bj/ /[Bb]uild/ /[Bb]uilds/ /[Ll]ogs/ /[Mm]emoryCaptures/ # Asset meta data should only be ignored when the corresponding asset is also ignored !/[Aa]ssets/**/*.meta # Uncomment this line if you wish to ignore the asset store tools plugin # /[Aa]ssets/AssetStoreTools* # Autogenerated Jetbrains Rider plugin [Aa]ssets/Plugins/Editor/JetBrains* # Visual Studio cache directory .vs/ # Gradle cache directory .gradle/ # Autogenerated VS/MD/Consulo solution and project files ExportedObj/ .consulo/ *.csproj *.unityproj *.sln *.suo *.tmp *.user *.userprefs *.pidb *.booproj *.svd *.pdb *.mdb *.opendb *.VC.db # Unity3D generated meta files *.pidb.meta *.pdb.meta *.mdb.meta # Unity3D generated file on crash reports sysinfo.txt # Builds *.apk *.unitypackage # Crashlytics generated file crashlytics-build.properties
Community moderators have prevented the ability to post new answers.
You first have to remove the file from tracking and then make Sourcetree to ignore the file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.