詳見:多人在線開發R
(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