更改key的权限
chmod 600 /path/to/key
chmod 400 /path/to/key
添加key
eval "$(ssh-agent -s)"
ssh-add /path/to/key
configure user
git config user.name "yourname"
git config user.email "youremail"
chmod 600 /path/to/key
chmod 400 /path/to/key
eval "$(ssh-agent -s)"
ssh-add /path/to/key
git config user.name "yourname"
git config user.email "youremail"