> README.mdgit initgit add READ...">
美文网首页
git初始化repo或者把已有repo与远程repo关连

git初始化repo或者把已有repo与远程repo关连

作者: 龙的文字记录 | 来源:发表于2019-11-15 10:59 被阅读0次
  1. 初始化一个repo
    echo "# gonote" >> README.md
    git init
    git add README.md
    git commit -m "first commit"
    git remote add origin https://github.com/smiteLi/gonote.git
    git push -u origin master

  2. 把已有repo与远程repo关连
    git remote add origin https://github.com/smiteLi/gonote.git
    git push -u origin master

相关文章

网友评论

      本文标题:git初始化repo或者把已有repo与远程repo关连

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