天天看点

如何讲代码push到github

本文来自

(来自海龙的博客)http://blog.csdn.net/hanhailong726188/article/details/46738929

之前找了许多博客学习如何push代码到github,很多博客在本地仓库连接到github上的时候,是

git remote add origin github.com:<你的名字>/< 新建仓库的名字>

这样是不对的,因为连接地址错误,应该在origin后面加上你在github上仓库的完整http路径,比如:

git remote add origin https://github.com/hanhailong/CustomRatingBar