如何上传本地代码到github上

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

.

posted @ 2018-02-16 19:01  健行天下  阅读(143)  评论(0)    收藏  举报