LoginSignup
18
20

More than 5 years have passed since last update.

UnityProjectをGitHubで管理する

Last updated at Posted at 2014-03-17
  1. GitHub for Windows をインストールする
  2. リポジトリ作成 Unity_Git_Test

  3. UnityProjectの作成・設定
    Project => 2D GitTest
    設定 => [Edit] > [Project Settings] > Inspecter上から設定を変える
    以下の“Mode”を変更
    [Version Control] を “Meta Files”
    [Asset Serialization] を “Force Text”

  4. UnityPojectをリポジトリ内に移動
    リポジトリの右クリックメニューから [view on github] を選択し、そこにUnityProjectの[2D GitTest]フォルダを丸ごと移動

  5. リポジトリに、いらないファイルを無視する設定をする
    歯車のアイコン > [Repository Settings...] > [ignore files] で無視するファイルを設定する
    以下を最後に追加
    Library
    Temp
    *.pidb
    *.unityproj
    *.sln
    *.userprefs

  6. UnityProjectにScriptを追加し、コミットする
    右上のアイコンから新しいBranchを作成
    変更を行うと、GitHub for Windows が自動検出する
    [Show] ボタンを押して検出内容を表示し、コミットする

  7. [Publish]ボタンを押してサーバーと同期させる(pull request)

  8. pull requestをMergeしたら、[sync]ボタンでMasterブランチに同期させる

    参考にしたサイト

    今回作ったリポジトリ

18
20
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18
20