My guess is that the version you have locally is not the same as the one you have remotely. Try a completely fresh checkout in a separate folder on your local machine.
It may also be worth ensuring you have not committed a vendor
folder to the repo also, in case that is confusing things.