Search Unity

Question Necessary to Import Everything After Git Pull?

Discussion in 'Editor & General Support' started by JudahMantell, Nov 24, 2021.

  1. JudahMantell

    JudahMantell

    Joined:
    Feb 28, 2017
    Posts:
    476
    I'm using Github desktop for version control for my Unity project. I also use it to basically have the same project on two computers (Mac and PC, if that matters) and push/pull as needed. This works great, but every time I pull the changes, everything has to import again. I know frequent importing is normal but is there any way I can carry over the cache or something so I don't have to wait a literal hour after pulling the changes?

    Thanks!

    EDIT: To clarify, Meta Files are Visible and Included, and for some reason after pulling and not changing anything in the Editor, Github shows a ton of changes on all the imported files.
     
  2. Are you using a .gitignore file based on this one? Are you properly ignoring the Library folder?
     
  3. JudahMantell

    JudahMantell

    Joined:
    Feb 28, 2017
    Posts:
    476
    Thanks for the reply!
    Yes, this is my gitignore. Upon comparison, the only difference is that I added some other stuff to ignore too.
    Code (CSharp):
    1. # This .gitignore file should be placed at the root of your Unity project directory
    2. #
    3. # Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore
    4. #
    5. [Ll]ibrary/
    6. [Tt]emp/
    7. [Oo]bj/
    8. [Bb]uild/
    9. [Bb]uilds/
    10. [Ll]ogs/
    11. [Mm]emoryCaptures/
    12.  
    13. # Asset meta data should only be ignored when the corresponding asset is also ignored
    14. !/[Aa]ssets/**/*.meta
    15.  
    16. # Uncomment this line if you wish to ignore the asset store tools plugin
    17. /[Aa]ssets/AssetStoreTools*
    18.  
    19. # Autogenerated Jetbrains Rider plugin
    20. [Aa]ssets/Plugins/Editor/JetBrains*
    21.  
    22. # Visual Studio cache directory
    23. .vs/
    24.  
    25. # Gradle cache directory
    26. .gradle/
    27.  
    28. # Autogenerated VS/MD/Consulo solution and project files
    29. ExportedObj/
    30. .consulo/
    31. *.csproj
    32. *.unityproj
    33. *.sln
    34. *.suo
    35. *.tmp
    36. *.user
    37. *.userprefs
    38. *.pidb
    39. *.booproj
    40. *.svd
    41. *.pdb
    42. *.mdb
    43. *.opendb
    44. *.VC.db
    45. *.rar
    46.  
    47. # Unity3D generated meta files
    48. *.pidb.meta
    49. *.pdb.meta
    50. *.mdb.meta
    51.  
    52. # Unity3D generated file on crash reports
    53. sysinfo.txt
    54.  
    55. # Builds
    56. *.apk
    57. *.aab
    58. *.unitypackage
    59.  
    60. #*.fbx
    61. # Crashlytics generated file
    62. crashlytics-build.properties
    63.  
    64. *.mp4
    65. *.pdf
    66. *.psd
    67. *.tif
    68. *.blend
    69.  
    70.  
    71. SceneForge Master/Assets/Cinematic URP Post-Processing/Demo/