2

I've just started a unity project with one of my friends for some fun and decided to use git to collaborate. I created the project on my computer and pushed it. Everything seems to be working except for nothing from my assets folder (but the scene) is getting pushed to the repo when I commit. I've only created a couple sprites, but they obviously aren't shown in the repo. I followed this tutorial set up git, How to use Git for Unity source control? . The only difference should be a minor change to the gitignore, which can be found at the repo https://github.com/ThomasKearney/Maze_Flick .

Community
  • 1
  • 1
tommyhawk
  • 51
  • 1
  • 5

1 Answers1

1

This section makes Git literally ignore everything that was not tracked yet.

# Ignore everything
/*
/*/

So Git now only tracks files that were added before the second commit, which introduced a .gitignore file.

Use the .gitignore from the SO answer, mentioned above. It's a good one.

Community
  • 1
  • 1
Nick Volynkin
  • 14,023
  • 6
  • 43
  • 67