Short answer: do not add .metadata to VCS.
Long answer:
There are two general reasons to do version control (this is a slight over simplification):
- to share your projects with other developers
- to ensure that you have backups in case your hard drive goes kaput
If you are using version control for the first reason, then there is nothing in the .metadata directory that should be versioned. This is because the information there is specific to your machine and would mess things up if other machines tried to use it.
In you are using version control for the second reason, then I would still recommend against versioning the metadata (although slightly less strongly). Much of the information in the .metadata is binary, or at least extremely uninteresting to read. So, you will not need to go back versions, do any diffs, or anything like that. Instead, I'd recommend just using a proper backup service that backs up your entire computer in case of an emergency.