為什么push不到GitHub上呢?這個error是什么意思呀
error: src refspec main does not match any
error: failed to push some refs to 'https://github.com/sssccciiii/test-demo.git'
error: src refspec main does not match any
error: failed to push some refs to 'https://github.com/sssccciiii/test-demo.git'
2021-11-12
舉報
2022-10-12
我也是出現了樓主一樣的問題,然后我就放棄github了?,F在用gitee使用的很順心。。。
2022-01-16
github 將master修改為main 并不以賬號密碼登錄 先生成token?
?git branch -M main?
git remote add origin
git push -u origin main
賬號:自己的賬號
密碼:生成的token
或者
git remote set-url origin https://<your_token>@github.com/<USERNAME>/<REPO>.git
2021-12-28
把git push -u origin main修改成
git push -u origin master