Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I want to share with you those changes based on the experience with other contributor forums that have the same problem related to the problem with the current .gitignore template used with Unity. Also, I wish to improve the way to push commits in Unity with a little suggestion about .vsconfig file.
Fix problems with current Unity.gitignore:
Eliminated first slash from:
Because git keeps tracking those folders. But if you use:
Git won't track it.
.vsconfig file considerations:
Added line 29 and 30 because generation of a .vsconfig file is just to ensure Visual Studio installation is compatible. This is autogenerated when started Unity.
Reasons for making this change:
This modification in the template favors future projects as it helps to upload files to a repository in a cleaner way.
What I expect is to help improve the current standard for uploading a project to a repository.
Links to documentation supporting these rule changes:
https://learn.microsoft.com/en-us/visualstudio/gamedev/unity/change-log-visual-studio-tools-for-unity#4900 changelog 4.9.0.0 explains the function of .vsconfig file. It is not necessary to version it since it is autogenerated as explained in the following link:
https://docs.unity.cn/Packages/com.unity.ide.visualstudio@2.0/changelog/CHANGELOG.html (changelog [2.0.4] - 2020-10-15 explains that .vsconfig is just to ensure Visual Studio installation is compatible and it can be regenerated when using "regenerate all").
Is this a new template?: No, it is just a little modification of current Unity .gitignore.
Thanks for your attention.
Greetings.