生成系统公钥
ssh-keygen -t rsa -C "xxxxx@xxxxx.com"
# Generating public/private rsa key pair...
# 三次回车即可生成 ssh key
cat ~/.ssh/id_rsa.pub
到https://github.com/settings/keys 添加SSH Keys
检测是否设置成功
ssh -T git@github.com
git init
git add .
git commit -m 'react-thunk'
git remote add origin git@github.com:Anony-Dino/react.git
git push -u origin master [-f]
git checkout -b origin/react-redux
git pull origin/react-redux
git branch -r // 查看分支列表
git reset --hard origin/react-redux // 强行拉取分支覆盖本地
git pull
1 评论