Changing the Git Protocol for an RStudio Project Already Under Version Control in Windows

I like to use RStudio for its built-in integration with version control systems. However, with RStudio on Windows, is there a way to change the Git protocol from httpto sshor vice versa for a project that is already under version control without first deleting and re-creating the project?

I might be missing something, but I initially cloned my repo with the help of httpwhich I later found it to be a huge pain, because every time I want to redirect project changes to GitHub, I have to re-enter my username and password. So I removed the project from version control ( Project -> Project Option -> Git/SVN -> Version Control System: none), and then tried to re-add the version control, hoping to use it ssh, but it will allow you to return to the original protocol that you selected when creating the project in the first place.

The only way I found the protocol change is to delete the project and then create a new project from GitHub using the correct parameters ssh. I would really like to be able to change the version control protocol of projects from httpto sshwithout deleting and re-cloning.

Is it possible?

+5
source share
1 answer

Check out the git configwhole configuration. You can configure multiple remotes so that the "distributed" aspect of git works.

( .git/config, !) , . , git, , .

+1

All Articles