rstudio-server使用github版本控制

詳見:多人在線開發R

知乎git學習建議

gitpro


(1)git安裝

方法一
源碼安裝
//先安裝git依賴的包 
yum install zlib-devel 
yum install openssl-devel 
yum install perl 
yum install cpio 
yum install expat-devel 
yum install gettext-devel 

//安裝autoconf 
yum install autoconf 

//安裝git 
wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz 
tar xzvf git-latest.tar.gz 
cd git-{date} 
autoconf 
./configure --with-curl=/usr/local 
make 
make install

方法二
yum安裝(epel源)    
yum install git  


測試安裝成功:

git --version


生成github的測試項目

mkdir ~/githubtest
touch README.md
echo intime-data-analyse >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/username/rstudio-intime.git
git push -u origin master


(2)生成密鑰

#生成rsa密鑰對
ssh-keygen -t rsa


#查看公鑰
cat /home/xuwy/.ssh/id_rsa.pub


(3)將公鑰上傳到github


(4)使用rstudio-server新建項目


(5)添加comment


(6)同步(push-上傳、pull-下載)文件


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章