2014年2月27日木曜日

git-flow での push 時のエラー

git-flow にて、ローカルコミット後、フィーチャブランチの完了を行い。
リポジトリへの push を行うと、以下のエラーが出た。

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 merge the remote changes (e.g.,
hint: 'git pull') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

どうやらリモートリポジトリが更新されているので、push を拒否したようだ。

対応としては、ヒントに書かれている通り、一度 pull をする。
pull 後にローカルでマージ処理が動いているので、問題無いとは思うが、
ビルドとテストを通して再度 push を行う。
これで上手く行った。

0 件のコメント:

コメントを投稿