AntonioSaintPierre
AntonioSaintPierre

Reputation: 13

unexpected changes appear on repository after just opening unity project

i'm new to using github repositories to share my unity projects, so i could be completely missing something. Basically i have a unity project inside a repository that i used just as a backup, but recentlty a frined joined the project and i had to share it with him and now everytime either one of us opens the project a bunch of changes come up on the changelog even if we did nothing but open the project. Most of the changes just say "this binary file has changed" but some look like files have been added or removed. Nothing looks or behaves differently on the project itself afterwards but the changes always come up We both use windows and have the same version of unity. i have included a gitignore file for unity in the repository.

Upvotes: 1

Views: 2274

Answers (1)

derHugo
derHugo

Reputation: 90813

Please refer to the "official" .gitignore for Unity where you can find a pretty complete list of stuff that should NOT be tracked in your version control.

This includes e.g. the entire Library folder. Reason: This folder is completely recompiled every time you open Unity so frequent changes in there are no surprise.

See also Cleaning up and Migrating existing Unity project into new one or another PC where I explained it in a bit more detail.

Then also refer to How to make Git "forget" about a file that was tracked but is now in .gitignore?

Upvotes: 1

Related Questions