LoginSignup
28

More than 1 year has passed since last update.

posted at

updated at

Gitでerror: src refspec master does not match anyのエラー

git push -u origin masterで初めてのプッシュをしようとした。
(まったくブランチの作成していない状態)

そこで

error: src refspec master does not match any
error: failed to push some refs to 'git@github.com,,,'

まさかのエラー。

原因:コミット忘れてた。

git commit -m "First commit"

このようなエラーが出たらコミットしたか確認してみてください。
以上です

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
28