Instead of adding a file name after the path, I accidentally used a path of the folder with AssetDatabase.CreateAsset(), now the folder is turned into a DefaultAsset, and everything within the folder were destroyed. And when I try to undo the changes using UnityVersion Control, I keep getting an error “Could not find a part of the path “c:\Unity.…”.” How do I undo the changes?
Are you using the Plastic GUI to undo the changes or the Unity plugin? Plastic SCM - Download Plastic SCM
Can you try to undo the changes via CLI in the root of the workspace?
cm unco --all
I found that I have to first delete the Folder (got turned in a DefaultAsset) first, and then undo it in SCM, otherwise undoing anything inside that folder will cause this error.