git can I view the reflog of a remote?

后端 未结 3 1274
栀梦
栀梦 2020-11-27 17:37

Is it possible to view the reflog of a remote? That is, I want to know what the output of git reflog is on another remote machine.

Note, I am not asking

3条回答
  •  我在风中等你
    2020-11-27 18:01

    On GitHub, if you did by mistake a git push --force on master before to fetch the merged changes and in the meanwhile the merged branch was deleted (yeah, it happened to me), you can look for the merged pull request and go to the Commits section, e.g:

    Then you go on the last commit and click on the <> button (that has title "Browse the repository at this point in the history").

    This will bring you to the "deleted" point of history. From here you can:

    • create a new branch and then open a new pull request (recommended if the change comes from another repository).
    • open a new pull request (recommended for commits inside your repository).

提交回复
热议问题