详见:多人在线开发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