GitHub Push does not work since two-identification factor activated in GitHub

Hi. I have a project connected to a GitHub repository. However, since I activated two-factor authentification in GitHub, I systematically get "Authentification Failed" when trying to Push from RStudio. Is there something I need to do to bypass two-factor identification when pushing from RStudio? Thanks a lot


There's been a report that putting the public key in the repo works, using @jennybryan's recipe