gitプッシュエラー

747 ワード

! [rejected] staging -> staging (fetch first)
error: failed to push some refs to '
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.
リモート・一時保存とローカル・一時保存の間のファイルが一致しません
->ハブで直接変更および配置し、ローカルで他の操作を行います.
同じブランチに変形を作成するには
したがって、同期は以下のように行われる.
git pull --rebase origin staging
git push origin staging