美文网首页
本地仓库绑定GitHub

本地仓库绑定GitHub

作者: 梨花菜 | 来源:发表于2020-11-17 23:51 被阅读0次

1、本地没有仓库

git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:lihuacai168/LeetCode.git
git push -u origin main

2、本地已有仓库

git remote add origin git@github.com:lihuacai168/LeetCode.git
git branch -M main
git push -u origin main

相关文章

网友评论

      本文标题:本地仓库绑定GitHub

      本文链接:https://www.haomeiwen.com/subject/xfkqiktx.html