{"id":27771376,"url":"https://github.com/maoyeedy/unitysetup","last_synced_at":"2026-04-13T21:01:31.721Z","repository":{"id":289948191,"uuid":"972893997","full_name":"Maoyeedy/UnitySetup","owner":"Maoyeedy","description":"Setup your Unity Projects to work better with Git.","archived":false,"fork":false,"pushed_at":"2025-04-28T00:49:15.000Z","size":1363,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-28T01:32:07.887Z","etag":null,"topics":["git","github","hooks","merge","powershell","pwsh","submodule","submodules","unity","unity3d","vcs"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Maoyeedy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-25T21:08:18.000Z","updated_at":"2025-04-28T00:49:18.000Z","dependencies_parsed_at":"2025-04-28T01:42:39.523Z","dependency_job_id":null,"html_url":"https://github.com/Maoyeedy/UnitySetup","commit_stats":null,"previous_names":["maoyeedy/unityprojectsetupscripts","maoyeedy/unitysetup"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maoyeedy%2FUnitySetup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maoyeedy%2FUnitySetup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maoyeedy%2FUnitySetup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maoyeedy%2FUnitySetup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Maoyeedy","download_url":"https://codeload.github.com/Maoyeedy/UnitySetup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251595944,"owners_count":21615003,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","github","hooks","merge","powershell","pwsh","submodule","submodules","unity","unity3d","vcs"],"created_at":"2025-04-29T22:36:52.238Z","updated_at":"2026-04-13T21:01:31.709Z","avatar_url":"https://github.com/Maoyeedy.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UnitySetup\n\nOneliner to setup Unity Project for VCS.\n\n\u003c!-- ![Screenshot](Public/carbon-dark.png) --\u003e\n![Screenshot](Public/carbon-light.png)\n\u003c!-- ![Screenshot](Public/ScreenshotAlt.png) --\u003e\n\u003c!-- ![Screenshot](Public/ScreenshotNu.png) --\u003e\n\n## What they do\n\n- Add [mergetool](Scripts/setup-unityyamlmerge.sh) `unityyamlmerge` to `.git/config` (to be used with `.gitattributes`)\n- Add [mergerules](Scripts/mergerules.txt) to make `unityyamlmerge` ignore negligible differences. [(Source)](https://docs.unity3d.com/Manual/SmartMerge.html)\n\n(Details can be found per `Scripts/*.sh`, you may modify them to your liking.)\n\n## How to Use (Step-by-Step)\n\n### Step 1: Open a Terminal in your project\nFirst, you need to open a command line terminal inside your Unity project folder.\n\n* **Windows:** Open your project folder in File Explorer, right-click on an empty space, and select **\"Open in Terminal\"**.\n* **Mac:** Open your project folder in Finder, right-click the path bar at the bottom (or the folder itself), and select **\"Open in Terminal\"**.\n\n### Step 2: Make sure Git is installed\nType these commands into your terminal and press Enter to check if Git is installed:\n```bash\ngit -v\ngit lfs version\n```\n*If you see version numbers, you're good to go! Skip to Step 3.*  \n*If you get an error, you need to install Git:*\n\n* **Windows:** Run this command to install Git:\n  ```powershell\n  winget install Git.Git\n  ```\n* **Mac:** Install [Homebrew](https://brew.sh/) (if you haven't already), then run:\n  ```bash\n  brew install git git-lfs\n  ```\n\n### Step 3: Run the setup script\nCopy and paste the command for your operating system into the terminal and press Enter:\n\n* **Windows (PowerShell):**\n  ```powershell\n  Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process -Force\n  irm https://raw.githubusercontent.com/Maoyeedy/UnitySetup/master/install.ps1 | iex\n  ```\n* **Mac / Linux / Git Bash:**\n  ```bash\n  curl -fsSL https://raw.githubusercontent.com/Maoyeedy/UnitySetup/master/install.sh | bash\n  ```\n\n## Recommended .gitattributes and .gitignore\n\nFor a complete Unity Git setup, add a `.gitattributes` and `.gitignore` tailored for Unity:\n\n- [Unity.gitattributes](https://github.com/gitattributes/gitattributes/blob/master/Unity.gitattributes) — ensures correct file handling and enables UnityYAMLMerge for conflicts\n- [Unity.gitignore](https://github.com/github/gitignore/blob/main/Unity.gitignore) — excludes build artifacts, caches, and other generated files\n\n## Troubleshooting\n\n* **Unity Hub Required:** This script automatically finds your Unity Editor location, but **it only works if you installed Unity via Unity Hub**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaoyeedy%2Funitysetup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaoyeedy%2Funitysetup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaoyeedy%2Funitysetup/lists"}