안녕하세요 맥파이입니다.
오늘은 Unity로 찾아왔습니다.
윈도우 피씨에서는 아래와 같은 명령어를 사용해서 lf를 처리해줍니다.
git config --global core.autocrlf true
CRLF 문제 즉 줄바꿈이 문제
.gitignore를 아래 소스로 바꿔주고, Library..UserSetting까지 앞에 프로젝트 명을 넣어준다.
프로젝트명/[Ll]ibrary/
# 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/*
일단 외국인이 알려준글
I've had similar issues in the past and I think there may be a potential bug in cloning with git lfs (Still to be determined). You can try this method of fetching the repo, which is in fact faster too:
// Skip smudge - We'll download binary files later in a faster batch
git lfs install --skip-smudge
// Do git clone here
git clone ...
// Fetch all the binary files in the new clone
git lfs pull
// Reinstate smudge
git lfs install --force
This only needs to be done once to initialize the clone for the first time.
Please do test it and let me know if it fixes it.
https://github.com/git-lfs/git-lfs/issues/911
Smudge filter failed with a fresh new clone · Issue #911 · git-lfs/git-lfs
Hi, My colleagues have added git lfs to manage big files in our repository, so I have installed this git extension. After this installation I run a git clone on my repo, and I get this error at the...
github.com
'개발 관련 > Unity' 카테고리의 다른 글
[Unity] 01 - 설정부터 (0) | 2023.07.15 |
---|---|
[Unity] transform.position, SerializeField, Destroy (0) | 2023.04.02 |
[Unity] transform.Translate(), Rotate() 학습 (0) | 2022.10.11 |
[Unity] Visual Studio Code 자동완성 안될 경우 대처 방법 (mono) (0) | 2022.10.10 |