问题
I need to find the person who deleted a branch in a project am working with
By checking the repo folder/files in .git/refs/heads/
, I can not find any metadata with that information.
What is the work around to find this/ him?
回答1:
Git alone would not provide any audit log for who pushed what.
You would need an authorization layer like gitolite in order to log those operations.
Note that if you have access to the remote repo (to which a branch deletion was pushed), you can find trace of the deleted branch in the git reflog.
回答2:
you can view this detail under activity section of org dashboard. Only org owners have access to this page.
https://github.com/orgs/{ORG_NAME}/dashboard
来源:https://stackoverflow.com/questions/40584240/find-person-who-deleted-a-branch