以cnblogs-scrapy.git为例介绍如何将本地代码push到github
- 在github上创建对应的仓库:https://github.com/hotbaby/cnblogs-scrapy.git
- 初始化本地仓库: $ git init
- 将代码添加本地仓库中: $ git add .
- 添加Log:$ git commit –m “Initialize commit.”
- 添加远程仓库:$ git remote add origin https://github.com/hotbaby/cnblogs-scrapy.git
- 将本地仓库push到远程仓库: $ git push origin master