- linux
- 安装依赖
- yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
- 首先下载git
- https://mirrors.edge.kernel.org/pub/software/scm/git/
- wget http://learning.happymmall.com/git/git-v2.8.0.tar.gz
- 解压,进入主目录
- 开始编译
- sudo make prefix=/usr/local all
- sudo make prefix=/usr/local install
- 开始配置SSH
- 创建项目文件夹 ,clone项目
- mkdir gitdownload
- cd gitdownload
- clone xxx.git
- 配置ssh
- ssh-keygen -t rsa -C ‘imooccode@163.com‘
- 把私钥告诉本地系统
- ssh-add ~/.ssh/id_rsa(不好使)
- 可以使用如下命令
- cat ~/.ssh/id_rsa.pub > authorized_keys
- 然后复制id_rsa.pub当中的公钥到码云的ssh设置当中。
- 最后再把设置的ssh公钥添加到码云当中即可。