onthe6ks’s diary

なんとなくシステム会社に勤めている会社員の日常と備忘

Bitbucketにpushできない。「error: src refspec all does not match any.」「コミットしていない」「コマンドの間違い」 

bitbucketにpushしようとしたら、pushできなかったお話

 

error: src refspec all does not match any.
error: failed to push some refs to 'git@bitbucket.org:XXXX/hello_app.git

ググると原因は「コミットしてない」ってことらしい

 

verytired.hateblo.jp

 

 だけど、コミット済み。。。。???

 

結局よく見直すとコマンドが間違ってた。。。情けない

誤: git push -u origin all

正: git push -u origin --all

 

コマンドの打ち間違えを疑うのは基本ですよね。

 

 

 

「広告」