怎么把本地项目上传到github

如何把本地项目上传到github

转载自 :http://blog.csdn.net/hanhailong726188/article/details/46738929

 

创建 git 的项目。。。git init  git add .   git commit -m ""    

 然后在github 网站创建自己的名字尽量保证一致。

 

把地址复制 出来 git remote add origin https://github.com/hanhailong/CustomRatingBar

 

第六步:上传github之前,要先pull一下,执行如下命令:

 

git pull origin master

 

git push -u origin master