zoukankan      html  css  js  c++  java
  • Git操作:绑定上传已存在的仓库到Github

    之前使用github都是创建一个全新的仓库,然后clone下来用,但如果我已经有一个正在使用的仓库,想要绑定上传已存在的仓库到github,怎么做呢?其实在github创建仓库的时候会提示:

    …or push an existing repository from the command line

    git remote add origin https://github.com/lyj00912/Duino9341.git
    git push -u origin master

    用这两句命令可以绑定上传已存在的仓库到github。

  • 相关阅读:
    SHELL[22]
    SHELL[15]
    SHELL[08]
    SHELL[12]
    SHELL[06]
    SHELL[24]
    SHELL[11]
    shell文件合并、去重
    SHELL[25]
    SHELL[14]
  • 原文地址:https://www.cnblogs.com/SirJackie/p/12194310.html
Copyright © 2011-2022 走看看