Clear application .git* resources from container after they are no longer needed.