Connect Studio to PRIVATE GitHub repository


This is already torturing me. I have an organisation on Github and we host private repositories there as well. I have no problem with public repositories, but the access is denied for private repositories.

No tutorials worked so far. I have created personal tokens. I don't know what I am missing.

Does anyone know how to connect RStudio to private repository?