Having not used github for a while I find they are now requiring two factor authentication. Fair enough. Have set it up via 1password on my phone, which gives me a code to enter on login, all works fine. The only problem comes when I try to push to a repo from Rstudio: I get a prompt for user name and password but that's it and then I get an error message:
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see Token authentication requirements for Git operations | The GitHub Blog for more information.
fatal: Authentication failed for 'GitHub - rjknell/Biostatistics: Package for biostatistics tutorials'
I've had a good look but can't find anything useful to help me get around this. Any suggestions? Surely lots of people are having this problem.