美文网首页
git remote add origin Git仓库

git remote add origin Git仓库

作者: ZoranLee | 来源:发表于2021-03-25 10:15 被阅读0次
  • 如果本地没有初始化git仓库,可以按照如下步骤初始化:
    echo "# kotlin_practice" >> README.md
    git init
    git add README.md
    git commit -m "first commit"
    git branch -M master
    git remote add origin https://github.com/ZoranLi/kotlin_practice.git
    git push -u origin master

  • 如果本地已经初始化仓库,关联远端git仓库:
    git remote add origin https://github.com/ZoranLi/kotlin_practice.git
    git branch -M master
    git push -u origin master

相关文章

网友评论

      本文标题:git remote add origin Git仓库

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