--git 使用 创建本地目录 1. 创建目录 2. 进入目录 3. git init 初始化仓库 4. 新建文件到工作区 5. git add index.txt 6. git commit -m"-m 代表注释" 到github上创建远程仓库 提交作业,先fork 1. 克隆你的项目 git clone 仓库地址 2. 修改工作区文件,添加你的练习 3. git add -A 4. git commit -m"提交第一次练习" 5. git push origin master 提交作业和练习的步骤 打开讲师的作业的仓库地址 https://github.com/zhufengnodejs/201601node_homework fork到你的用户下面 克隆你fork之后的项目 git clone 仓库地址 修改工作区文件,添加你的练习 git add -A 提交到暂存区 git commit -m"" 提交到历史区 git push origin master 推送到本人的github上 发一个pull request 由讲师来合并代码 课件的地址 https://github.com/zhufengnodejs/201601node 作业的地址 https://github.com/zhufengnodejs/201601node_homework.git 视频 http://www.zhufengpeixun.com/org/510/course?categoryId=215024&cateLevel=2&serviceType=totalCourse&chargeType=0#orgTab http://school.zhufengpeixun.cn/course/31 http://pcottle.github.io/learnGitBranching/ --Nodejs 注册npm帐号 D:\vip\gitcode\201601node>npm adduser Username: zhufengnodejs Password: Email: (this IS public) zhufengnodejs@126.com Logged in as zhufengnodejs on https://registry.npmjs.org/. npm publish 发布