Unity builds a lot of stuff, lots of which are files generated by the tools that shouldn’t be committed to version control.
- Create new empty 3-d project in Unity Editor
- Create a new empty repo in your GitHub account
- Use text editor to add a README.md in the root folder of your project
- Go to GitHub’s archives of .gitignore files and grab the .gitignore for Unity development.
- Place this file in the root folder for your project
- Execute the following script:
git init
git add README.md ,gitignore
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/adamwadelewis/gallery.git
git push -u origin main
- Now add the contents of your Unity project folder to your repo and then commit and