githubでpushしようとしたところ以下のエラーが出ました。
(env1) hoge@LAPTOPhoge:~/env1$ git push -u origin master Username for 'https://github.com':hoge Password for 'https://hoge@github.com': To https://github.com/hoge/reading-reco.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'https://github.com/hoge/reading-reco.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details. (env1) hoge@LAPTOP-hoge:~/env1$ git remote -v origin https://github.com/hoge/reading-record-app.git (fetch) origin https://github.com/hoge/reading-record-app.git (push)
Integrate
1hint: 'git pull ...') before pushing again.
とのことなので、push前にプルしろということなのでしょうが、なぜ初回のpushでこれを要求されるのでしょうか。pullしようにも、pushしないとpullのしようがないのではないでしょうか。また、
(env1) hoge@LAPTOP-hoge:~/env1$ git remote -v origin https://github.com/hoge/reading-reco.git (fetch) origin https://github.com/hoge/reading-reco.git (push)
↑これの意味を教えていただきたいです。
試したこと
git pull などを試してみましたが、うまくいきませんでした。

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/01/23 09:28