gitignore icon indicating copy to clipboard operation
gitignore copied to clipboard

Added inclusion phrase for `meta` files

Open constant-flow opened this issue 1 year ago • 1 comments

gitignore template of visualstudio is excluding meta file

a proposal like in this issue could make use of the inclusion phrases to make generated gitignore files more usable: https://github.com/toptal/gitignore.io/issues/626

Reasons for making this change: meta files are excluded by other gitignore templates (e.g. Visualstudio), so it's important to actively include it, so unity is working with versioning correctly. Using this notation might help gitignore generators to improve their output. Right now the order decides which rule is more important, see the linked issue for more explanation

Links to documentation supporting these rule changes:

  • https://itecnote.com/tecnote/git-opposite-of-gitignore-file/
  • https://github.com/toptal/gitignore.io/issues/626

constant-flow avatar Sep 21 '23 08:09 constant-flow

I been using this line for a while, leaving it here so others can copy it:

# Asset meta data should only be ignored when the corresponding asset is also ignored
!/[Aa]ssets/**/*.meta

EudenDev avatar Dec 10 '23 13:12 EudenDev