0
頻繁に(特に--amend
を使ってコミットして)私はgit push heroku master --force
を使って英雄に押します。私のリモートリポジトリとローカルリポジトリが細かいので、私はそれで何の害を見ないいつも英雄に押しつけて害がありますか
o https://git.heroku.com/site.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://git.heroku.com/site.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.
:力なしにプッシュしようとしたとき、私は問題を取得するので、私は問題
..これを行います。私が間違っている?
本当に間違った誤りを訂正しようとしない限り、強制的にプッシュする必要はありません。さらに正確な方法はgitで修正してください –
通常、強制的にプッシュを書き直す方法として使用されます遠隔地の歴史。これはコミットを取り除くか、古いGitオブジェクトに新しいコミットを置くことです。どれくらいの人がHerokuアプリに書き込みアクセス権を持っていますか?誰かがHerokuアプリケーションにコミットをプッシュしている可能性はありますか?あなたが引き出しを行っている別の共有リモート(GitHubのようなもの)にはできませんか? – admpsktt