1.3 将初始化后的项目上传到github
Keywords: git, github, node.js
1. 查看当前git账户配置是否正确
git config --list
2. 配置正确的用户名和邮箱
git config --global user.name "name"
git config --global user.email "email"
3. 初始化git目录, 并在本地提交第一个commit
git init
git add .
git commit -m 'init'
4. 在github上面创建一个新的repository. 这里我命名为 tengblog
6. 创建好之后根据推荐的命令行将代码提交到远程仓库
git remote add origin https://github.com/yuuteng/tengblog.git
git branch -M master
git push -u origin master