ablog

不器用で落着きのない技術者のメモ

GitHub に push すると "error: src refspec master does not match any."、"error: failed to push some refs to" と怒られる

事象

  • GitHub に push すると "error: src refspec master does not match any."、"error: failed to push some refs to" と怒られる。
$ git push origin master 
error: src refspec master does not match any.
error: failed to push some refs to 'git@github.com:yoheia/myrepository.git'

解決策

$ git push origin main