LoginSignup
0
0

【Xcode エラー】src refspec master does not match any【解決法】

Posted at

UdemyのとあるSwift講座を模写した後に
以下の参考記事を参考にターミナルからコミット/プッシュをしたら

《参考記事》 GithubにTerminalからプロジェクトをcommit, pushする

以下の画像のように

「src refspec master does not match any」
「failed to push some refs to "URL"」

といったエラーに遭遇した。

スクリーンショット 2023-05-23 17.31.19.png

エラーメッセージをググって出てきた以下の参考記事の解決法

『「git push origin master」ではなく
 「git push origin main」をターミナルに打つ』

を採用したら無事にエラーが消えてコミット/プッシュができた。

《参考記事》 git push時のerror:src refspec master does not match anyについて

0
0
0

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
  3. You can use dark theme
What you can do with signing up
0
0