あるプロジェクトをGitで管理しているときに,特定のあたりまで進んで,やっぱり前の状態のからやり直したいなと思い,git reset --hard ハッシュ値
で戻り,作業した後にpushをしたら,下記の注意が出ました.
error: failed to push some refs to ... 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.
自分としては,コミットを戻して進めた作業をpushして,このまま進めたいのですがどうしたらよいでしょうか?
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。