以cnblogs-scrapy.git为例介绍如何将本地代码push到github

  1. 在github上创建对应的仓库:https://github.com/hotbaby/cnblogs-scrapy.git
  2. 初始化本地仓库: $ git init
  3. 将代码添加本地仓库中: $ git add .
  4. 添加Log:$ git commit –m “Initialize commit.”
  5. 添加远程仓库:$ git remote add origin https://github.com/hotbaby/cnblogs-scrapy.git
  6. 将本地仓库push到远程仓库: $ git push origin master

相关文章:

  • 2021-11-06
  • 2021-08-08
  • 2021-08-20
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
  • 2021-04-02
  • 2022-12-23
猜你喜欢
  • 2021-07-07
  • 2021-05-25
  • 2021-04-29
  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案