Find person who deleted a branch?

痞子三分冷 提交于 2021-02-19 05:28:18

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!