###前提・実現したいこと
git pushをしたい
###発生している問題・エラーメッセージ
C:\Users\kinoko\backup\0919\lospo [master]> git push origin master To https://github.com/kmasahiko06/lospo.git ! [rejected] master -> master (fetch first) error: failed to push some refs to 'https://github.com/kmasahiko06/lospo.git' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
###試したこと
1)git pull
2)fetchしてmerge
3)fetchしてrebase
4)pull –commitやpull –rebase
1)をしたところでエラーメッセージが以下に変わったのですが、エラーが出たままです
C:\Users\kinoko\backup\0919\lospo [master]> git push origin master To https://github.com/kmasahiko06/lospo.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'https://github.com/kmasahiko06/lospo.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.
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。