美文网首页
Git推送到远程仓库

Git推送到远程仓库

作者: 抬头挺胸才算活着 | 来源:发表于2022-01-24 04:14 被阅读0次
    • create a new repository on the command line
      echo "# MyTomcat" >> README.md
      git init
      git add README.md
      git commit -m "first commit"
      git branch -M main
      git remote add origin https://github.com/ycli12/MyTomcat.git
      git push -u origin main

    • push an existing repository from the command line
      git remote add origin https://github.com/ycli12/MyTomcat.git
      git branch -M main
      git push -u origin main

    相关文章

      网友评论

          本文标题:Git推送到远程仓库

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