git初始化repo或者把已有repo与远程repo关连
2019-11-15 本文已影响0人
龙的文字记录
-
初始化一个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 -
把已有repo与远程repo关连
git remote add origin https://github.com/smiteLi/gonote.git
git push -u origin master