最近一直在看Java Web视频,现在讲到了用java web的三层架构,以后说不定会写一个网站,把在视频中学到的一个个模块加进去。就准备在github上建立一个仓库,由于之前是了解github的,想着很简单,然而push时却出现了一个错误。
git push -u origin master
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
但是发现可以连接上github,
ssh -T git@github.com
最后删除远程分支,
git remote remove origin
并使用https的方式再次新建分支push成功。
话说之前在github上搭建的博客呢,由于不会被百度到,自己也不经常混迹在github上,也就不会有一些与他人的交流,就作为一个记录生活的地方吧。