上传项目到github上

一、在github上创建一个仓库

二、初始化本地仓库

git  init  git add.......

三、 将本地的仓库关联到github上

git remote add origin 自己github仓库地址

自己github仓库地址:https://github.com/用户名/仓库名.git

或者在你创建仓库的时候“Quick setup - if you're done this kind of thing before”这一行下面就是仓库地址

四、把代码上传到github仓库

git push -u origin master

猜你喜欢

转载自blog.csdn.net/qq_40794973/article/details/83034242
今日推荐