通知
すべてクリア
10/01/2022 1:38 pm
sourcetreeでプッシュ時に以下のエラーが出てしまいます。
error: open("10_UnityProject/workDay01/RollaBall/Library/PackageCache/com.unity.ide.visualstudio@2.0.11/Editor/AppleEventIntegration~/AppleEventIntegration.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist"): Filename too long error: unable to index file '10_UnityProject/workDay01/RollaBall/Library/PackageCache/com.unity.ide.visualstudio@2.0.11/Editor/AppleEventIntegration~/AppleEventIntegration.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist' fatal: adding files failedwarning: LF will be replaced by CRLF in 10_UnityProject/workDay04/Tank/Library/PackageCache/com.unity.collab-proxy@1.9.0/package.json. The file will have its original line endings in your working directory error: open("10_UnityProject/workDay04/Tank/Library/PackageCache/com.unity.ide.visualstudio@2.0.11/Editor/AppleEventIntegration~/AppleEventIntegration.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist"): Filename too long error: unable to index file '10_UnityProject/workDay04/Tank/Library/PackageCache/com.unity.ide.visualstudio@2.0.11/Editor/AppleEventIntegration~/AppleEventIntegration.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist' fatal: adding files failed
10/01/2022 1:39 pm
以下のコマンドで解除できました!
git lfs ls-files git lfs untrack '*.png' '*.jpg' '*.jpeg' git rm -r --cached . git lfs uninstall git checkout . git clean -df
10/01/2022 1:39 pm
良かったです。
大規模プロジェクトの場合はプロジェクトが重いのでgit lfsはおすすめですが慣れてないとエラーの原因になるので1人開発の場合は特に必要ないかと思います。