Libraries are not rebuild properly when using GIT

Hi,
I’m using git repository with my global libraries - I have an issue with libs when switching between repositories.
How can I trigger a full rebuild of global libraries?

Do you mean pio lib update?