如何查找Git服务器上的操作历史记录
迷茫
迷茫 2017-05-02 09:37:17
0
2
499

如何查看在git上的操作?比如谁删除了什么分支,谁建立了什么分支
我在Git上删除了分支名为‘A’的分支,然后又重新建了一个,那么,被删除的分支‘A’如何恢复?上面有一些数据需要恢复

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all (2)
过去多啦不再A梦
$ git reflog
    洪涛
    $ git reflog $ git branch branch_name commit_hash

    Find the corresponding commit_hash code of each submission through the reflog, find the hash of the submission that needs to be restored, and then perform local recovery through the following commands. The recovery is to restore the local one. After recovery, just get the corresponding file locally.

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!