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
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.
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.