Skip to content

Unity.gitignore ignore meta files for already ignored unitypackages #3589

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Tymski
Copy link

@Tymski Tymski commented Dec 2, 2020

Reasons for making this change:
Files that are not tracked should not have tracked metafiles.

With this .gitignore I got a lot of
image

Files that are not tracked should not have tracked metafiles.
@cscharfen
Copy link

Hi Tymski,

your observation is correct. Due to the blocking of *.unitypackage and because of some Unity Asset Store packages come with .unitypackage files, the related meta file needs to be ignored too. Else, they get added with the first commit and deleted with the next commit done by someone else or after cleaning the repository.

I see two options to solve this:

  1. Either completely remove the "*.unitypackage" line from the gitignore (However, I guess this was already discussed at some point and the decision was made pro adding it to the gitignore at that time, which is fine.)
  2. Or add the *.unitypackage.meta file as Tymski suggests (to provide consistency).

@shiftkey I recommend to accept this pull request or, in case you need more opinions, raise a discussion.

Copy link

github-actions bot commented Jun 1, 2025

This PR is stale because there have been no updates in 90 days. It will close after 180 days of inactivity. Leave a comment if you want to keep it open 😄

@github-actions github-actions bot added the stale label Jun 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants