提交本地代码到github (commit to remote repo)

从零开始参考 : https://www.cnblogs.com/cxk1995/p/5800196.html

由于我已经建好了私有库,所以通过如下步骤提交本地代码

0. 在github已经创建好的repo页面,点击“Clone”获取 <web URL>.

1. 将remote repo 克隆到本地:git clone <web URL>

2. 本地会产生一个local repo, 将需要提交的代码全部放入这个local repo文件夹中

3. 进入local repo 文件夹中, 依次运行如下命令完成提交。

  git add .

       git commit -m "<commit messge>"

  git push -u origin master

以上,完毕。

原文地址:https://www.cnblogs.com/fdyang/p/13191262.html