github 笔记
连接到远程主机指定的端口:
# ssh root@192.168.120.120 -p 6222
查看github访问
ssh -T -v git@github.com
查看已存在的秘钥文件
ls -al ~/.ssh
把密钥字符串复制到剪切板
pbcopy < ~/.ssh/id_rsa.pub
echo "# MAGLocation" >> README.md
git init //初始化git
git add README.md // 添加一个文件
git commit -m "first commit" //提交变更
git remote add origin git@github.com:aikongmeng/MAGLocation.git //
git push -u origin master // 提交分支
git remote rm origin // 删除分支
git remote add origin git@github.com:aikongmeng/MAGLocation.git
git push -u origin master