Do I need to commit metadata folder files when working on version control?

Whats the point of those files anyways could I just discard them?
Im using sourcetree and github.
Thank you for your help

You should ignore Library folder, use the following gitignore file: gitignore/Unity.gitignore at main · github/gitignore · GitHub
(Save to root of your project with name .gitignore)

Since metetadata folder is inside, it should get ignored too. If it’s still there, it’s because it’s already being tracked, you’ll have to git rm files specified from the gitignore. Don’t be scared, Unity will regenerate them for others.

When you start a project, make sure you use the right gitignore, saves you some precious time.

Don’t confuse Library’s metadata folder with .meta files, you’ll want to version the .meta files. Also there’s a plugin you can use in unity that will delete empty folders and their meta files so you don’t have useless meta files all the time.