当前位置:首页 > Web开发 > 正文

之前使用github都是创建一个全新的仓库

2024-03-31 Web开发

之前使用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。

git绑定上传已存在的货仓到github

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/web/31550.html