error: src refspec master does not match any【解決策】
Error内容
error: src refspec master does not match any
error: failed to push some refs to 'https://source.developers.google.com/p/*****/r/*****'
解決方法
以下のコマンドを実行することで解決します!
touch initial
git add initial
git commit -m "initial commit"
git push -u origin master
原因
リポジトリが空であることが原因です。
解説
# 空initialファイルを生成しています
touch initial
# 作成したinitialファイルをgitに追加しています
git add initial
# 現状のgitをコメント付きでコミットしています
git commit -m "initial commit"
# マスターにプッシュしています
git push -u origin master