A student had a problem dealing with the SSH connection to their GitHub account. After cloning the repository via the RStudio interface, with the repository url, they had to introduce a password to push commits. The SSH connection that they set up with their laptop was not recognized. A quick fix is to follow this workflow, which clones the repository via SSH, instead of the URL.
Create a repository on GitHub.
Clone the repository via the terminal, running
git clone git@github.com:yourusername/repositoryname.git. This will create a new folder in your laptop named repositoryname.
Go to RStudio and create a new project, from "an existing directory" and browse to the folder you created in the previous step.
Check the connection by making some change, commiting it and pushing it. Then check on the browser if you can see the changes.
A student had a problem dealing with the SSH connection to their GitHub account. After cloning the repository via the RStudio interface, with the repository url, they had to introduce a password to push commits. The SSH connection that they set up with their laptop was not recognized. A quick fix is to follow this workflow, which clones the repository via SSH, instead of the URL.
git clone git@github.com:yourusername/repositoryname.git
. This will create a new folder in your laptop namedrepositoryname
.