Configuring github for an existing Rstudio project

Environment: Win XP, RStudio 0.97.551

I have an existing RStudio project (a book using knitr). I want to configure github for version control. If that matters, the project is currently stored in the Dropbox folder. I am familiar with using git / github on Ubuntu, but not on Windows or with RStudio.

I read a document Using Control Version with RStudio, configure my project to use git for version control and create an empty github project, but something is missing because I cannot find a push / commit method for github replication.

In the section Project - Project parameters - SVN / Git I see the correct remote repo: git @ github.com: friendly / VCDR.git configured through

git remote add origin https://github.com/friendly/VCDR.git

In RStudio, I tried using the shell to execute

git push -u origin master

but i get

Permission denied (publickey)
fatal: Could not read from remote repository

I installed a pair of public / private keys through some RStudio menu, and also used

git config --global user.name 'Michael Friendly'
git config --global user.email 'friendly@yorku.ca'

What can I do to make this work?

+4
source share

Source: https://habr.com/ru/post/1526368/


All Articles