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

2019-11-15  本文已影响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

上一篇 下一篇

猜你喜欢

热点阅读