Help us understand the problem. What is going on with this article?

UnityでGit管理するときの設定項目

More than 3 years have passed since last update.

Unityの設定

  1. [Edit] -> [Project Settings] -> [Editor]を選択
  2. Inspectorビューを開く
  3. [Version Control] のModeを [Visible Meta Files] に変更
  4. [Asset Serialization] のModeを [Force Text] に変更

Gitの設定

  • .gitignoreを作成し以下を記述する
.gitignore
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/Assets/AssetStoreTools*

# Autogenerated VS/MD solution and project files
ExportedObj/
*.csproj
*.unityproj
*.sln
*.suo
*.tmp
*.user
*.userprefs
*.pidb
*.booproj
*.svd


# Unity3D generated meta files
*.pidb.meta

# Unity3D Generated File On Crash Reports
sysinfo.txt

# Builds
*.apk
*.unitypackage

めんどくさいのでスクリプト化しました

毎回、同じ作業をするのが面倒なので以下のエントリにスクリプト張ってます。
- Unityで開発するときにフォルダ構成と.gitignoreを作る便利スクリプト

参考リンク

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした