Ruby on Railsでアプリ作成中うまくいかなくなり、
git reset --hard xxxxxxxx
として以前のcommitまで戻り、修正しました。
改めて、いつものように
git add~commit
まで実行し、
git push origin master:master
を実行したところ、
master -> master (non-fast-forward) 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 reset --hardで過去に戻って修正加えたファイルを再度githubへpullするにはどうしたら良いのでしょうか?
自分でも検索してるのですがよく分かりません。
ご教授願います。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/09/18 01:56