Git本地已有仓库进行连接Remote库 本地没有仓库进行本地新建仓库连接Remote库
生活随笔
收集整理的這篇文章主要介紹了
Git本地已有仓库进行连接Remote库 本地没有仓库进行本地新建仓库连接Remote库
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
已有倉庫
Administrator@Jim MINGW64 /d/phpstudy/PHPTutorial/WWW/backstagemanagement (master) $ git remote add origin https://github.com/7117/backstagemanagement.gitAdministrator@Jim MINGW64 /d/phpstudy/PHPTutorial/WWW/backstagemanagement (master) $ git push -u origin master Enumerating objects: 25, done. Counting objects: 100% (25/25), done. Delta compression using up to 8 threads Compressing objects: 100% (21/21), done. Writing objects: 100% (25/25), 89.59 KiB | 4.48 MiB/s, done. Total 25 (delta 0), reused 0 (delta 0) To https://github.com/7117/backstagemanagement.git* [new branch] master -> master Branch 'master' set up to track remote branch 'master' from 'origin'.?沒有倉庫
git init touch README.md git add README.md(第一次為空的add的話 會報錯error: src refspec master does not match any) git commit -m "first commit" git remote add origin https://github.com/7117/eShopBackstage.git git push -u origin master?說明
總結
以上是生活随笔為你收集整理的Git本地已有仓库进行连接Remote库 本地没有仓库进行本地新建仓库连接Remote库的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 小康股份2021目标价 有机构称能翻倍
- 下一篇: 复利是什么意思