toptal / gitignore.io

Create useful .gitignore files for your project
https://www.toptal.com/developers/gitignore
MIT License
8.29k stars 627 forks source link

Generating a gitignore with Unity + VisualStudio/VisualStudioCode causes incompatibility issues #642

Open imandresilva opened 1 month ago

imandresilva commented 1 month ago

Issue

Generating a gitignore with Unity + VisualStudio generates a line in the gitignore which ignores any "[Pp]ackages" folder anywhere on the project. This causes issues because it is a core folder within Unity.

Issue

Expected Behavior:

The Packages folder should not be ignored, when Unity is in the selected options

Actual Behavior:

The Packages folder is ignored

Reproduction Steps:

  1. Open this link: https://www.toptal.com/developers/gitignore?templates=unity,visualstudio and generate a gitignore file.
  2. Create an empty Unity project and import any package
  3. Commit all files to the repo
  4. Clone the repo and open it in Unity
  5. Unity will raise errors because it can't find all the files from the packages folder