Hi,
I would first verify how the repository was cloned.
For Mendix projects, I recommend cloning the project using:
git clone --branch BRANCH_NAME --single-branch https://pat:YOUR_PAT@git.api.mendix.com/APP_ID.git
Mendix Git is a little different from a standard Git repository. If the project wasn't cloned correctly (or the correct branch wasn't checked out), Studio Pro may not be able to authenticate properly, which can result in errors like "too many redirects or authentication replays" or "You do not have access to this project."
Also note that some Git operations (such as branch management) are intended to be performed through Studio Pro rather than the command line.
If you originally cloned the repository using a different URL or without specifying the branch, I'd recommend cloning it again using the command above and then opening it in Studio Pro.
Kindly mark this as the accepted answer if it helps.