git添加新用户

更改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"

posted @ 2020-01-10 14:21  Github-Haltz  Views(6177)  Comments(0Edit  收藏  举报