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 .
Asked
Active
Viewed 1,148 times
2
-
This question can be reformulated as "Why Git ignores files, mentioned in .gitignore?". – Nick Volynkin Jun 05 '15 at 18:55
1 Answers
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
-
-
There's a whole lot of useful links on the git-tag "about" page. Feel free to use them, especially the tutorials. http://stackoverflow.com/tags/git/info – Nick Volynkin Jun 05 '15 at 19:24