- 首先建立仓库:
- 点击new repository;
- 输入仓库名字;
- 最后点击Initialize this repository with a README;
2.克隆到本地: - 在控制命令行中输入git clone 以及在创建仓库时复制下来的路径就可以克隆到本地
3.上传代码: - git status;
- git add .;
- git commit -m'注释内容';
- git push;
- 输入账号;
- 输入密码;
.
.
转载于:https://www.cnblogs.com/wangjian2016/p/8450359.html