Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
通常、これを解決するためにgitstashを実行します。しかし、今回は自分の変化を確実に推し進めたいと思います。Git stashは私の変更を隠すだけですよね?では、このエラーメッセージを解決して、コードをプッシュする方法はありますか?
リモートサーバーから最近の変更をフェッチし、それらに対して現在のブランチをリベースする必要があります。
git pull --rebase
その後(運が良ければ、誰も変更をプッシュしていません)、もう一度プッシュできます。
git push