Git錯誤--error: src refspec master does not match any.
阿新 • • 發佈:2018-12-20
一.問題描述
將本地倉庫的內容push到遠端倉庫時提示錯誤:
error: src refspec master does not match any.
error: failed to push some refs to 'https://gitee.com/sweeneys/mysite.git'
二.問題分析
add之後忘記commit,本地倉庫為空,所以導致該錯誤。
三.解決方法
操作的時候不能著急,按步驟進行,commit之後再push。