Until now i used the Android platform to work on my game. But now i switched to iOS to make a build. Everything worked. Now i would like to push my commits to my Github repo. For some reason the push takes infinitely long. Im not able to push anymore and i dont know why. I work with Sourcetree with win10 since i dont know anything about the console. I also use the .gitignore from Github. Im not sure what kind of information there is left for me to share, so u can picture my situation. I would really appreciate some help.
Maybe you added the /Library folder to your git project?
Unity creates gigabytes of data for each plattform in that folder.
But you do not need to add it to your git.
If you checkout the git on another pc later on unity will recreate all files in that folder.
Conclusion:
Ignore the /Library folder in git and it should commit faster.
this is my .gitignore. As u can see /Library will be ignored
This .gitignore file should be placed at the root of your Unity project directory
Get latest from gitignore/Unity.gitignore at main · github/gitignore · GitHub
[Ll]ibrary/
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
i found the reason why. This .gitignore sucks ass. It doenst ignore "estIosbuild/" thats why i couldnt push
1 Like