总结一下,上传代码的步骤,我参考了知乎的文章
-
安装Git
-
登录自己点的github账号,创建一个新的repository
-
绑定用户。Git bash 在桌面快捷方式、开始菜单、安装目录中
- git config --global user.name "*******"
- git config --global user.email "*******@qq.com"
-
为GIthub账户设置SSH Key
-
上传本地项目到github
- 创建一个本地项目 git init
- 将所有文件添加到仓库 git add .
- 然后将文件提交到仓库,双引号内是提交注释 git comit -m "注释"
- 去github赋值仓库的ssh地址,然后git remote add origin ssh地址
- last step 上传本地代码 git push -u orugin master.