Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

bluefin's avatar

Forge can't access to the git repository of organization

Hey, We had forge set up with one of our developers git credentials and it was working fine. Now that developer doesn't work with us , so we decided to remove his git account from the organization. Since then we can't deploy any of our projects in forge. It shows the error :

ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists

We tried updating the git token at the source control tab.Nothing really worked with forge. However we had the same issue in envoyer and refreshing token made it work.

0 likes
5 replies
ejdelmonico's avatar

Did you try re-authenticating Github? Also, try deleting the connected repo and adding it with the proper credentials.

2 likes
bluefin's avatar

Thanks for the help. I tried that too, but still it doesn't connect.

bluefin's avatar
bluefin
OP
Best Answer
Level 4

Hey, I found the bug. It was the ssh key. The forge ssh key of the repo was added to the ex-developers account, removed it from his account and added to to an existing devs account and it worked. Thanks anyway

1 like

Please or to participate in this conversation.