Unfortunately, it does not work.
While I can create new repositories, I cannot update any files from within RStudio.
I find it hard to believe that it is possible to create new repositories and upload whole packages but if I attempt to change a single character within a file, the credentials are not sufficient.
I have provided and registered a Github PAT via usethis as recommended in the linked explanation.
However if I make any changes in my project, then stage and commit these, and try to PULL, I get the following error message:
C:/Users/martin.zuba/AppData/Local/Programs/Git/bin/git.exe push origin HEAD:refs/heads/master
fatal: HttpRequestException encountered.
Fehler beim Senden der Anforderung.
Unbehandelte Ausnahme: System.ObjectDisposedException: Auf eine geschlossene Datei kann nicht zugegriffen werden.
bei System.IO.__Error.FileNotOpen()
bei System.IO.FileStream.Flush(Boolean flushToDisk)
bei System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
bei Microsoft.Alm.Git.Trace.Microsoft.Alm.Git.ITrace.Flush()
bei Microsoft.Alm.Cli.Program.Die(String message)
bei Microsoft.Alm.Cli.Program.Die(Exception exception)
bei Microsoft.Alm.Cli.Program.Main(String args)
fatal: HttpRequestException encountered.
Fehler beim Senden der Anforderung.
I am sorry, this is partly German. Basically it says that it can't access closed files. I have not the slightest idea what that means.