雑記

日記とかメモとか

Unityの.gitignore設定

git管理下でUnityProjectを触る場合のgitignore設定方法メモー

ignoreファイルの中身はこれ

*.csproj
*.unityproj
*.sln
*.suo
*.tmp
*.user
*.userprefs
*.pidb
*.booproj
*.svd
*.iml
*.apk
*.svd
*.unitypackage
VSCode*
.vscode*
.DS_Store
Library/
Temp/
LocalCache/
obj/
ExportedObj/
sysinfo.

設定方法

$ vi .gitignore
$ git rm -r --cached .
$ git add .gitignore
$ git commit -m "add .gitignore"
$ git push origin branch