一、安装与升级git
先查看系统是否安装有git,没有则sudo apt-get install git安装
查看版本后可升级git:
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
二、配置git
git config --global user.name "xx"
git config --global user.email "xx@gmail.com"
git config --list(查看配置的信息)
三、生成key
ssh-keygen -t rsa
然后再~/.ssh/中可以看到key了
四、使用git
xxxxxxxxxxxxxxxx