Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

after switching platform to iOS git push takes for ever

Discussion in 'iOS and tvOS' started by iboshido, Mar 27, 2021.

  1. iboshido

    iboshido

    Joined:
    Mar 4, 2017
    Posts:
    33
    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.
     
  2. BenniKo

    BenniKo

    Joined:
    Mar 24, 2015
    Posts:
    100
    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.
     
  3. iboshido

    iboshido

    Joined:
    Mar 4, 2017
    Posts:
    33
    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 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
     
  4. iboshido

    iboshido

    Joined:
    Mar 4, 2017
    Posts:
    33
    i found the reason why. This .gitignore sucks ass. It doenst ignore "[Tt]estIosbuild/" thats why i couldnt push
     
    BenniKo likes this.