open git bash to gen key
ssh-keygen -T rsa -C "yujialive@gmail.com"
passphrase # 可以为空格
<homedir>/.ssh/id_rsa
<homedir>/.ssh/id_rsa.pub
copy pub key to github site
id_rsa.pub to github.com -- user settings -- ssh keys
test ssh and gen hosts
config repo
# change to ssh link for old repo
git remote -v
git remote set-url origin git@github.com:yujialive/yujialive.github.io.git
# new git repo
git remote add origin git@github.com:yujialive/yujialive.github.io.git
git config --global user.name "yujialive"
git config --global user.email "yujialive@gmail.com"
# or
git config --local user.name "yujialive"
git config --local user.email "yujialive@gmail.com"