Reputation: 2450
I have been version-controlling the projects under my workspace but it never occurred to me that I should be checking in the workspace configuration itself.
Until now.
I know that I have absolutely no interest in the perpetually bloating .log
file, so I am definitely not going to check it in, but... can I discard other other subdirectories or files? Should the .lock
(size 0) be checked it? What about the .plugins
subdirectory?
Upvotes: 4
Views: 2729
Reputation: 2064
There would be one good to reason doing this : versioning the working set file, to share project lists efficiently between teams.
Upvotes: 1
Reputation: 28757
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):
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.
Upvotes: 8