新手步骤(非使用本人的gulp工具,省略第14、15步骤,实际上为项目操作步骤了)
- 安装nodejs(V4.x版本以上),输入node -v 和 npm -v 查看是否安装成功
- 安装git,输入git –version 查看是否安装成功
- 注册github账号
- 本地绑定github权限,执行 $ git config -global user.name“你的昵称”,输入$ git config -global user.email“你的github注册邮箱”
- 取消回车换行符转换,执行 $ git config --global core.autocrlf false
- 本地生成ssh-keygen,执行ssh-keygen -t rsa -C “你的github注册邮箱”
- 在电脑系统的本用户下找到.ssh文件夹,复制id_rsa.pub内容至自己的github的Settings/ssh中。
- github官网新建一个远程仓库(new repository),创建后复制远程仓库路径,如“https://github.com/用户名/仓库名.git”
- 创建本地工作区(分支),工作区目录下右键启动“Git Bash Here”,输入执行