I use git and sfdx with vs code. I have a scratch org where I made changes to the roles. I did sfdx pull source from scratch org. But I discarded the changes thinking I can pull them again from scratch org. But unfortunately everytime I do pull from scartch org I get "No results found". If I do
sfdx force:source:status I get:
STATE FULL NAME TYPE PROJECT PATH ────────────────────────── ────────────────────────────────── ─────────── ─────────────────────────────────────────────────────────────────────────────────────── Local Deleted Global Role force-app\main\default\roles\Global.role-meta.xml
I can Push in to scratch org because it says:
Error force-app\main\default\roles\Global.role-meta.xml Your attempt to delete the role Global could not be completed because users are currently assigned to that role or at least one role reports to that role.
How can I undo this mess?