git配置
1.设置git的name和email
git config --global user.name "fxf"
git config --global user.email "git的邮箱"
git config --global core.autocrlf false
git config --global core.quotepath off
git config --global gui.encoding utf-8
2.配置ssh-key
ssh-****** -t rsa -C "git邮箱"(然后一路回车enter)
ssh-add ~/.ssh/id_rsa
如果出现如图
则输入:eval `ssh-agent`
ssh-add ~/.ssh/id_rsa
否者,输入:cat ~/.ssh/id_rsa.pub