How to find the history of operations on a Git server
迷茫
迷茫 2017-05-02 09:37:17
0
2
601

How to view operations on git? For example, who deleted what branch and who created what branch
I deleted the branch named ‘A’ on Git and then re-created it. So, how to restore the deleted branch ‘A’? There is some data that needs to be restored

迷茫
迷茫

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

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