RStudio 版本控制 配置 说明RStudio 版本控制 配置 说明
如何搭建git服务器一.版本控制软件安装RStudio 支持两种Version Control 软件:git 和subversion。
GIT :git-scm/
SubVersion :/
这里我直接使用YUM 来安装:
Linux 使用光盘搭建 本地 YUM 服务器
blog.csdn/tianlesoftware/article/details/7302358
[root@rac1 /]# yum install git-core
Loaded plugins: refresh-packagekit
Setting up Install Process
Package git-1.7.1-2.0.1.el6_0.1.x86_64already installed and latest version
Nothing to do
[root@rac1 /]# yum install subversion
Loaded plugins: refresh-packagekit
Setting up Install Process
Package subversion-1.6.11-2.el6_0.3.x86_64already installed and latest version
Nothing to do
[root@rac1 /]#
二. 配置版本控制
2.1 Using a directory already under version control If you have anexisting directory which is already under Git or Subversion version controlthen you simply need to create a new RStudio project for that directory andthen version control features will be automatically enabled.
--如果在Git 或者Subversion 下已经有了一个目录,那么可以创建一个新项目,然后使用这个已经存在
的目录,创建完之后,这个项目就可以直接使用版本控制功能,具体操作如下:
To do this:
(1)Execute theNewProjectcommand (from the Project menu)
(2)Choose to create a new projectfrom anExisting Directory
(3)Select the appropriatedirectory and then clickCreate Project
A new projectwill be created for the directory and RStudio's version control features willthen be available for that directory.
2.2 Creating a new project based on a Git or SubversionrepositoryIf you have anexisting Git or Subversion repository that you want to use as the basis for anRStudio project you should:
(1)Execute theNewProjectcommand (from the Project menu)
(2)Choose to create a new projectfromVersion Control
(3)ChooseGitorSubversionasappropriate
(4)Provide the repository URL (andother appropriate options) and then clickCreate Project
The remoterepository will be cloned into the specified directory and RStudio's versioncontrol features will then be available for that directory.
2.3 Adding version control to a projectIf you have an existingdirectory that you want to add version control to, you should consult thedocumentation for Git or Subversion concerning how to initialize a repository(both local commands as well as commands required to connect it to a remoteserver).
Subversiondirectories are always paired with an external repository, so cannot beconfigured for version control without also configuring the externalconnection. However, Git repositories can be created in purely local mode (iffor example you want to track changes locally but aren't concerned withcollaborating and/or syncing between multiple workstations). To add a gitrepository to an existing project:
(1)Execute theProject
Optionscommand (from the Project menu)
(2)ChooseVersionControloptions
(3)Change the version controlsystem from (None) toGit
(4)Confirm that you wish toinitialize a new Git repository
A Git repositorywill be created for the project and you'll be prompted to restart RStudio toenable version control features for the project.
三.示例这里用Linux 下的 RStudio Server 演示:
1. 配置版本控制服务器
这里可以自己搭建一个服务器,也可以使用google projecthosting.
Linux 搭建SVN 服务器
blog.csdn/tianlesoftware/article/details/6119231
我们这里使用googleproject hosting(le/hosting/)。
创建一个项目:tianlesoftware,对应地址:
le/p/tianlesoftware/
2.在RStudio 中配置现在我们在RStudio创建一个新项目:
在Commit的时候需要输入OS 用户的密码,google Code 用户名,和密码,注意这里的密码不是账户的密码,而是单独生成的一个密码:
在这里点击generated 就可以查看密码了:
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论