git上传项目到github
- 先决条件
- github账号
- 安装git-for-windows工具
- 步骤
- github创建一个仓库并复制地址
https://github.com/licer-lee/spring-clean - 本地目录下git bash here 克隆项目
git clone https://github.com/licer-lee/spring-clean
cd spring-clean
- 复制项目到spring-clean目录中
git commit -m "注释"
git push -u origin master
- 输入账户密码等待推送结果。
ps: 过程中可能需要设置user.email 和user.name
网友评论