日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Github(5)-开源开发-常见错误

發布時間:2023/12/13 编程问答 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Github(5)-开源开发-常见错误 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

使用github 托管代碼簡單使用教程--開源開發-常見錯誤

  • 5. github開源開發
  • 6. 報錯log
    • 6.1 fatal: remote origin already exists.
    • 6.2 There is no tracking information for the current branch.
  • 6.標簽管理

廖雪峰老師博文學習筆記:https://www.liaoxuefeng.com/wiki/896043488029600/897884457270432


5. github開源開發

step1: Fork 開源項目至自己的github平臺端
step2: 從自己的github 平臺clone該倉庫到本地
step3: 在本地進行開發,將文件push到自己的遠端倉庫
step4: 向開源項目發起pull reques,對方視情況答應你的合并代碼要求

6. 報錯log

6.1 fatal: remote origin already exists.

命令:

git remote add origin git@github.com:cyy-hub/Deecamp.git

報錯:

fatal: remote origin already exists.

分析:已經關聯了一個倉庫
解決:刪除原來的關聯,在添加新的關聯

git remote rm origin
git remote add origin git@github.com:cyy-hub/Deecamp.git

6.2 There is no tracking information for the current branch.

問題描述:

$ git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/ dev

原因:本地分支沒有和遠程分支建立聯系
解決:建立聯系

$ git branch --set-upstream-to=origin/dev dev
Branch ‘dev’ set up to track remote branch ‘dev’ from ‘origin’.

6.標簽管理

暫時沒get到有什么用,就不記了


廖雪峰老師博文學習筆記:https://www.liaoxuefeng.com/wiki/896043488029600/897884457270432

總結

以上是生活随笔為你收集整理的Github(5)-开源开发-常见错误的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。