1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Mergeしたプルリクを間違えてRevertしてしまった時の対応

Posted at

結論

revertをrevertすれば良い

方法

ローカルのmasterブランチに移動

$ git checkout master

リモートリポジトリの内容を反映

$ git pull

ログを表示し、revertに振られたid?を確認

$ git log --oneline
7d146881 Revert "掲示板を作成"
42cdd131 掲示板を作成
.
.

revertをrevertする

$ git revert 7d146881

pushしてリモートに反映する

$ git push

参考

技術ブログっぽいなにか

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?