日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學(xué)無(wú)先后,達(dá)者為師

網(wǎng)站首頁(yè) 編程語(yǔ)言 正文

git error: failed to push some refs to

作者:cxxx17 更新時(shí)間: 2022-04-12 編程語(yǔ)言
git push origin master

error: src refspec master does not match any.
error: failed to push some refs to ‘https://github.com/ChenX17/bdasr.git’

Git最近把master分支改名成了main,遠(yuǎn)程沒(méi)有master這個(gè)分支,可以新建一個(gè)master分支,再push到遠(yuǎn)程:

git checkout -b master
git push origin master

或者直接push到遠(yuǎn)程的main分支。

git push origin main

原文鏈接:https://blog.csdn.net/weixin_42262721/article/details/109691116

欄目分類
最近更新