Failed to register flow with Flow Registry due to Error creating snapshot: An unexpected error has occurred. Please check the logs for additional details

Nifi registry key was expired, I have regenerated key for nifi registry ans also nifi nodes.
After setting up new key ssl error resolved but now i still can't commit to nifi registry from nifi node.
Error log from nifi registry log :
2023-09-15 12:18:56,526 ERROR [NiFi Registry Web Server-25] o.a.n.r.web.mapper.ThrowableMapper An unexpected error has occurred: org.apache.nifi.registry.flow.FlowPersistenceException: Git directory ./nifi01_flow is not clean or has uncommitted changes, resolve those changes first to save flow contents.. Returning Internal Server Error response.
org.apache.nifi.registry.flow.FlowPersistenceException: Git directory ./nifi01_flow is not clean or has uncommitted changes, resolve those changes first to save flow contents.
Note: I did not made any config change other then adding new ketstore and truststore to nifi registry and nodes.

