gitでブランチを作りプルリクエストをしたところ修正点を指摘されました。
そのため、ファイルを修正して再度プルリクエストしたいのですがやり方がわかりません。
gitでプルリクエストを同じブランチで修正したファイルを反映させるにはどのようにすればよいでしょうか?
実行してみたコマンド
1回目
git add A.json(修正したファイル)
git commit -m "ブランチ名"
git push origin ブランチ名
gitのページを見に行ってもプルリクエストが反映されていなかった。
2回目
git add A.json(修正したファイル)
git commit -m "ブランチ名"
On branch ブランチ名 nothing to commit, working directory clean
git push origin ブランチ名
Warning: Permanently added the RSA host key for IP address '××.××.××.××' to the list of known hosts. To git@github.com:××××××/××××××××.git ! [rejected] ×××× -> ××××× (fetch first) error: failed to push some refs to 'git@github.com:××××××/××××××××.git' 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.

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/02/15 04:36