I downloaded a new asset from the asset store which has about 300 materials in it. I want to prevent these from being checked in to my VCS to avoid blowing up the size of the repo, and instead add them individually as I decide to use each one.
But in unity VCS window I see every single one has been added automatically to “added and private” changes. I tried adding the folder to the ignore.conf file in the root of my assets folder but this doesn’t seem to be getting applied. I assume this is because these items are already added into the “added” context, and so are automatically being tracked and the ignore file is not being used?
When I right click on the root folder and click “undo” it gives me a scary warning that “this cannot be undone”. Then when i click continue it says: “To perform the undo checkout operation on directory… its contents must be added to the operation”
but I have selected every single item in the directory thats listed in the VCS window and it still gives me this error of having to add the contents to the operation.
A few questions and observations:
- Is there a way to bulk undo these added changes? It’s a bit frustrating there isn’t an obvious path to doing this in the UI, I assume this is a common-ish operation?
- Can I disable the “auto add changes” behavior? If its going to be such a pain to remove items from this list then I’d prefer to just disable the behavior
- Why does the “undo” operation give a scary warning about a non-undoable operation? Is this actually deleting the files? I really hope not, since its called “undo”… if its just removing the changes from the commit, then why the scary message? Surely I could just add them back to the commit list?
- Coming from git, I assume what is happening is a “git add *” is run automatically. I see the value in automatically staging items to be committed… But why does it need to be soft committed and entered into tracking immediately? Surely it could be just added to the commit list and then when I select “check in changes” it gets both added and committed? Then I can just add to the ignore.conf whenever instead of needing to do it before the items are created
Overall this is a frustratingly complicated experience. Coming from git it would be nice if unity VCS didn’t re-invent the wheel with new terminology like “added”, “private” and “hidden changes”, and if the UI the was a bit more intuitive about what exactly “undo” means here.