【发布时间】:2022-06-22 18:56:21
【问题描述】:
我一直在谷歌上搜索这个没有任何运气,我发现的小结果并没有解决我在我的项目中处理的文件层次结构。
所以我有一个简单的统一项目,在我使用 FireBase 之前,文件夹层次结构如下所示:
Assets
---->Scenes
Packages
导入 FireBase 后,层次结构如下所示:
Assets
---->Editor Default Resources
---->ExternalDependencyManager
---->FireBase
---->Parse
---->Plugins
---->Scenes
---->StreamingAssets
Packages
知道我应该在我的 .gitignore 中更改什么以避免将所有数百兆字节添加到我的 github 中吗?
我目前的 gitignore:
# This .gitignore file should be placed at the root of your Unity project directory
#
# Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore
#
[Ll]ibrary/
[Tt]emp/
[Oo]bj/
[Bb]uild/
[Bb]uilds/
[Ll]ogs/
[Uu]ser[Ss]ettings/
# MemoryCaptures can get excessive in size.
# They also could contain extremely sensitive data
[Mm]emoryCaptures/
# Recordings can get excessive in size
[Rr]ecordings/
# 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
*.aab
*.unitypackage
*.app
# Crashlytics generated file
crashlytics-build.properties
# Packed Addressables
[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin*
# Temporary auto-generated Android Assets
[Aa]ssets/[Ss]treamingAssets/aa.meta
[Aa]ssets/[Ss]treamingAssets/aa/*
【问题讨论】:
-
这些文件是 Firebase 运行所必需的。你不想忽略下摆。
-
Github 不允许一次提交超过 100M。这是一个实际问题。我需要火力基地
-
进行多次提交。
-
这怎么可能? firebase 包一次性导入到我的统一项目中
-
暂存一半文件,提交,暂存其余文件,提交。
标签: git firebase unity3d github gitignore