Flask リポジトリをフォークし、その Web サイト ブランチを GitHub から次のように複製しました。
git clone --recursive https://github.com/lovesh/flask.git -b website
次に、次のようにリモートを構成しました
git remote add upstream https://github.com/lovesh/flask.git -t website
git fetch upstream
次に、変更を加えました(追加のファイルは作成しませんでしたが、2つのファイルを変更しました)その後、ファイルを追加し、このような変更をコミットする必要がありました
git add .
git commit .
これにより、コミットのコメントが求められ、コメントを入力しました。今、それは私を示しました
2 files changed, 69 insertions(+), 7 deletions(-)
しかし、これらの変更を GitHub アカウントにプッシュしようとすると
git push origin master
それはエラーを示しています
error: src refspec master does not match any.
error: failed to push some refs to 'https://github.com/lovesh/flask.git'
私が周りを見回したところ、この問題を抱えていた人々は、ここやここのように変更をコミットしていないと言いました。しかし、それでもコミットしましたが、このエラーが表示されます。私が試したことを確認するために
git status
そしてそれは示した
# On branch website
# Your branch is ahead of 'origin/website' by 1 commit.
#
nothing to commit (working directory clean)
git log
ログに私のコミットも表示されます。私はgitが初めてです。何か不足していますか?