上传代码到github上

初始化

  git init

添加远程仓库

  git remote add origin[仓库名] 仓库地址

添加文件

  git add .

本地提交

  git commit -m 'message'

拉去远程代码并和本地合并

  git pull origin master

提交代码到github上

  git push -u origin master

posted @ 2017-03-16 22:15  SpeicalLife  阅读(178)  评论(0)    收藏  举报