javaweb学习路之二--上传gitgub

代码上传github

代码上传到github的步骤

第一步:申请github账号

    https://github.com/注册账号

第二步:登录github,新建repository仓库,命名,创建

image

第三步:下载安装git bash

第四步:右击自己的项目—》Git Bash Here

第五步:直接在网页上copy下图命令,在Git Bash中运行

image

第六步:添加所有文件,命令

git add .
git commit -m "first commit"
git remote add origin https://github.com/Zering/WebTest.git
git push -u origin master
注意  add .中‘.’表示所有文件

posted on 2016-05-25 13:40  执念saying  阅读(300)  评论(0编辑  收藏  举报

导航