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
 

 

posted @ 2019-03-25 21:48  一个学渣  阅读(312)  评论(0编辑  收藏  举报

 

CSDNGitHub 联系邮箱:aikongmeng@gmail.com


Copyright 2008-2019 Government All Rights Reserved